Attempt to fix vulkan shader compilation

error: cannot instantiate StructuredBuffer with given packed alignment; 'VK_EXT_scalar_block_layout' not supported
#rb Jamie.Hayes
[CODEREVIEW] Ola.Olsson
#rnx
#preflight 63200f15b602881e8eaee462

[CL 21986761 by marc audy in ue5-main branch]
This commit is contained in:
marc audy
2022-09-13 13:22:17 -04:00
parent 8307ed64dd
commit 4e37349e58
2 changed files with 2 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ struct FVSMCullingBatchInfo
uint NumPrimaryViews;
uint PrimitiveRevealedOffset;
uint PrimitiveRevealedNum;
uint2 padding; // avoid error: cannot instantiate StructuredBuffer with given packed alignment; 'VK_EXT_scalar_block_layout' not supported
};
#if ENABLE_BATCH_MODE

View File

@@ -1930,6 +1930,7 @@ struct FVSMCullingBatchInfo
uint32 NumPrimaryViews;
uint32 PrimitiveRevealedOffset;
uint32 PrimitiveRevealedNum;
uint32 padding[2]; // avoid error: cannot instantiate StructuredBuffer with given packed alignment; 'VK_EXT_scalar_block_layout' not supported
};