Add constant buffers alignment for data structures (16-byte boundaries)
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
#include "Engine/Debug/DebugDraw.h"
|
||||
#endif
|
||||
|
||||
PACK_STRUCT(struct Data0
|
||||
PACK_STRUCT(struct alignas(GPU_SHADER_DATA_ALIGNMENT) Data0
|
||||
{
|
||||
Float3 ViewWorldPos;
|
||||
float ViewNearPlane;
|
||||
|
||||
Reference in New Issue
Block a user