Improve GPU constant buffers structures definitions to properly align on new Clang
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
#include "Engine/Graphics/Graphics.h"
|
||||
#include "Engine/Graphics/RenderTask.h"
|
||||
|
||||
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) Data
|
||||
{
|
||||
GPU_CB_STRUCT(Data {
|
||||
Float4 ScreenSize;
|
||||
});
|
||||
|
||||
|
||||
@@ -15,8 +15,7 @@ class SMAA : public RendererPass<SMAA>
|
||||
{
|
||||
private:
|
||||
|
||||
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) Data
|
||||
{
|
||||
GPU_CB_STRUCT(Data {
|
||||
Float4 RtSize;
|
||||
});
|
||||
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include "Engine/Renderer/GBufferPass.h"
|
||||
#include "Engine/Engine/Engine.h"
|
||||
|
||||
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) Data
|
||||
{
|
||||
GPU_CB_STRUCT(Data {
|
||||
Float2 ScreenSizeInv;
|
||||
Float2 JitterInv;
|
||||
float Sharpness;
|
||||
|
||||
Reference in New Issue
Block a user