Improve GPU constant buffers structures definitions to properly align on new Clang

This commit is contained in:
Wojtek Figat
2024-06-02 09:52:10 +02:00
parent 2492d0b38f
commit 1e86eff2d3
40 changed files with 57 additions and 76 deletions

View File

@@ -179,7 +179,7 @@ void ExponentialHeightFog::GetExponentialHeightFogData(const RenderView& view, S
result.VolumetricFogMaxDistance = VolumetricFogDistance;
}
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) Data {
GPU_CB_STRUCT(Data {
ShaderGBufferData GBuffer;
ShaderExponentialHeightFogData ExponentialHeightFog;
});

View File

@@ -17,7 +17,7 @@
#include "Engine/Serialization/Serialization.h"
#include "Engine/Level/Scene/SceneRendering.h"
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) Data {
GPU_CB_STRUCT(Data {
Matrix WVP;
Float3 ViewOffset;
float Padding;