Skip to content

Commit 9ea856b

Browse files
committed
Fix ray tracing validation
1 parent 4e27835 commit 9ea856b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/raytracinggltf/raytracinggltf.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ class VulkanExample : public VulkanRaytracingSample
6666

6767
// Buffer device address requires the 64-bit integer feature to be enabled
6868
enabledFeatures.shaderInt64 = VK_TRUE;
69+
// Format for the storage image is decided at runtime, so we can't explicilily state it in the shader
70+
enabledFeatures.shaderStorageImageReadWithoutFormat = VK_TRUE;
71+
enabledFeatures.shaderStorageImageWriteWithoutFormat = VK_TRUE;
6972

7073
enabledDeviceExtensions.push_back(VK_KHR_MAINTENANCE3_EXTENSION_NAME);
7174
enabledDeviceExtensions.push_back(VK_EXT_DESCRIPTOR_INDEXING_EXTENSION_NAME);

0 commit comments

Comments
 (0)