16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 04:19:19 +02:00
Files
maszyna/betterRenderer/shaders/manul/draw_constants.hlsli
2025-04-15 01:32:56 +02:00

32 lines
568 B
HLSL

#ifndef DRAW_CONSTANTS_HLSLI
#define DRAW_CONSTANTS_HLSLI
struct VertexPushConstants {
float4x3 m_ModelView;
float4x3 m_ModelViewHistory;
float3 m_Diffuse;
float m_AlphaThreshold;
float m_AlphaMult;
float m_SelfIllum;
};
#ifdef SPIRV
[[vk::push_constant]] ConstantBuffer<VertexPushConstants> g_DrawConstants;
#else
cbuffer g_Const : register(b1) { VertexPushConstants g_DrawConstants; }
#endif
#endif
float4x3 GetModelView() {
return g_DrawConstants.m_ModelView;
}
float4x3 GetModelViewHistory() {
return g_DrawConstants.m_ModelViewHistory;
}