Skip to content

Commit cca9def

Browse files
committed
Initialise AS variables in descriptor buffer test
1 parent 346d437 commit cca9def

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

util/test/demos/vk/vk_descriptor_buffer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -956,11 +956,11 @@ void main()
956956
VkImageView t_comb_30_tex = MakeTestImage("t_comb_30_tex", Vec4f(0.5f, 0.0f, 0.5f, 1.0f));
957957

958958
AllocatedBuffer blasBuffer;
959-
VkAccelerationStructureKHR blas;
959+
VkAccelerationStructureKHR blas = VK_NULL_HANDLE;
960960
AllocatedBuffer tlasBuffer;
961-
VkAccelerationStructureKHR j;
962-
VkAccelerationStructureKHR t_as_60;
963-
VkAccelerationStructureKHR u_20;
961+
VkAccelerationStructureKHR j = VK_NULL_HANDLE;
962+
VkAccelerationStructureKHR t_as_60 = VK_NULL_HANDLE;
963+
VkAccelerationStructureKHR u_20 = VK_NULL_HANDLE;
964964
if(rays)
965965
{
966966
Vec3f vertices[] = {

0 commit comments

Comments
 (0)