16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 17:29:18 +02:00

Some renaming

This commit is contained in:
2025-04-15 01:32:56 +02:00
parent 12d6a1578d
commit a39d972126
864 changed files with 29 additions and 34 deletions

View File

@@ -0,0 +1,31 @@
#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;
}