Add constant buffers alignment for data structures (16-byte boundaries)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#define THREADGROUP_SIZE_Y 16
|
||||
#define HISTOGRAM_SIZE 64
|
||||
|
||||
PACK_STRUCT(struct HistogramData {
|
||||
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) HistogramData {
|
||||
uint32 InputSizeX;
|
||||
uint32 InputSizeY;
|
||||
float HistogramMul;
|
||||
|
||||
Reference in New Issue
Block a user