fix: enable imageCubeArray feature + transition all 24 shadow layers
Two validation errors fixed: 1. imageCubeArray feature not enabled → added VkPhysicalDeviceImageCubeArrayFeatures to device creation chain (pNext: cubeArray → sync2 → dynamicRendering) 2. Shadow layers 18-23 in UNDEFINED layout → transition ALL 24 layers (MaxShadowLights * 6) instead of only numShadowLights * 6 Descriptor references all 24 layers via CubeArray view
This commit is contained in:
@@ -208,6 +208,14 @@ public unsafe struct VkPhysicalDeviceDynamicRenderingFeatures
|
||||
public VkBool32 dynamicRendering;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe struct VkPhysicalDeviceImageCubeArrayFeatures
|
||||
{
|
||||
public VkStructureType sType;
|
||||
public nint pNext;
|
||||
public VkBool32 imageCubeArray;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe struct VkPhysicalDeviceSynchronization2Features
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user