Improve GPU constant buffers structures definitions to properly align on new Clang
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user