File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3833,6 +3833,10 @@ lvk::AccelStructHandle lvk::VulkanContext::createBLAS(const AccelStructDesc& des
38333833 LVK_ASSERT (desc.transformBuffer .valid ());
38343834 LVK_ASSERT (desc.buildRange .primitiveCount );
38353835
3836+ LVK_ASSERT (buffersPool_.get (desc.indexBuffer )->vkUsageFlags_ & VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR);
3837+ LVK_ASSERT (buffersPool_.get (desc.vertexBuffer )->vkUsageFlags_ & VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR);
3838+ LVK_ASSERT (buffersPool_.get (desc.transformBuffer )->vkUsageFlags_ & VK_BUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR);
3839+
38363840 VkGeometryFlagsKHR geometryFlags = 0 ;
38373841
38383842 if (desc.geometryFlags & AccelStructGeometryFlagBits_Opaque) {
You can’t perform that action at this time.
0 commit comments