Skip to content

Commit

Permalink
Create buf_accel_scratch with VK_BUFFER_USAGE_STORAGE_BUFFER_BIT
Browse files Browse the repository at this point in the history
Silences validation error VUID-vkCmdBuildAccelerationStructuresKHR-pInfos-03674
  • Loading branch information
res2k committed Sep 9, 2021
1 parent ab4d470 commit 3ff4047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refresh/vkpt/path_tracer.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ vkpt_pt_init()
minAccelerationStructureScratchOffsetAlignment = accel_struct_properties.minAccelerationStructureScratchOffsetAlignment;

buffer_create(&buf_accel_scratch, SIZE_SCRATCH_BUFFER,
VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT,
VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT | VK_BUFFER_USAGE_STORAGE_BUFFER_BIT,
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT);

for(int i = 0; i < MAX_FRAMES_IN_FLIGHT; i++) {
Expand Down

0 comments on commit 3ff4047

Please sign in to comment.