Improve GPU constant buffers structures definitions to properly align on new Clang
This commit is contained in:
@@ -52,11 +52,11 @@
|
||||
// True if enable downscaling when rendering blur
|
||||
const bool DownsampleForBlur = false;
|
||||
|
||||
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) Data {
|
||||
GPU_CB_STRUCT(Data {
|
||||
Matrix ViewProjection;
|
||||
});
|
||||
|
||||
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) BlurData {
|
||||
GPU_CB_STRUCT(BlurData {
|
||||
Float2 InvBufferSize;
|
||||
uint32 SampleCount;
|
||||
float Dummy0;
|
||||
|
||||
Reference in New Issue
Block a user