Add constant buffers alignment for data structures (16-byte boundaries)
This commit is contained in:
@@ -15,7 +15,7 @@ struct Item
|
||||
uint32 Value;
|
||||
};
|
||||
|
||||
PACK_STRUCT(struct Data {
|
||||
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) Data {
|
||||
Item NullItem;
|
||||
uint32 CounterOffset;
|
||||
uint32 MaxIterations;
|
||||
|
||||
Reference in New Issue
Block a user