17 lines
459 B
HLSL
17 lines
459 B
HLSL
#ifndef ROOT_CONSTANTS_HLSL
|
|
#define ROOT_CONSTANTS_HLSL
|
|
|
|
cbuffer RootConstants : register(b0, space0)
|
|
{
|
|
row_major float4x4 ViewProjection;
|
|
uint BufferIndex;
|
|
uint TextureIndex;
|
|
uint VertexOffset; // Base vertex for indexed drawing with bindless buffers
|
|
uint _Padding; // Padding for alignment
|
|
float2 Scale; // 2D scale factor
|
|
float2 Translate; // 2D translation
|
|
};
|
|
|
|
|
|
#endif // ROOT_CONSTANTS_HLSL
|