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:
31
betterRenderer/shaders/manul/draw_constants.hlsli
Normal file
31
betterRenderer/shaders/manul/draw_constants.hlsli
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user