Skip to content

Commit

Permalink
Remove rayTracingPipeline requirement from rayquery (#1115)
Browse files Browse the repository at this point in the history
rayquery test doesn't use ray tracing pipelines so it shouldn't
enable this feature.

See: #1004

Signed-off-by: Danylo Piliaiev <[email protected]>
  • Loading branch information
werman authored Apr 6, 2024
1 parent 2f8b5c9 commit 90054f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/rayquery/rayquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,9 @@ class VulkanExample : public VulkanRaytracingSample
enabledBufferDeviceAddresFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES;
enabledBufferDeviceAddresFeatures.bufferDeviceAddress = VK_TRUE;

enabledRayTracingPipelineFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHR;
enabledRayTracingPipelineFeatures.rayTracingPipeline = VK_TRUE;
enabledRayTracingPipelineFeatures.pNext = &enabledBufferDeviceAddresFeatures;

enabledAccelerationStructureFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_FEATURES_KHR;
enabledAccelerationStructureFeatures.accelerationStructure = VK_TRUE;
enabledAccelerationStructureFeatures.pNext = &enabledRayTracingPipelineFeatures;
enabledAccelerationStructureFeatures.pNext = &enabledBufferDeviceAddresFeatures;

enabledRayQueryFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHR;
enabledRayQueryFeatures.rayQuery = VK_TRUE;
Expand Down

0 comments on commit 90054f6

Please sign in to comment.