Code cleanup (variable shadowing)
This commit is contained in:
parent
85a13ec645
commit
f04b7217bb
1 changed files with 9 additions and 9 deletions
|
|
@ -314,20 +314,20 @@ public:
|
||||||
0.0f, 0.0f, 1.0f, 0.0f,
|
0.0f, 0.0f, 1.0f, 0.0f,
|
||||||
};
|
};
|
||||||
|
|
||||||
GeometryInstance instance{};
|
GeometryInstance geometryInstance{};
|
||||||
instance.transform = transform;
|
geometryInstance.transform = transform;
|
||||||
instance.instanceId = 0;
|
geometryInstance.instanceId = 0;
|
||||||
instance.mask = 0xff;
|
geometryInstance.mask = 0xff;
|
||||||
instance.instanceOffset = 0;
|
geometryInstance.instanceOffset = 0;
|
||||||
instance.flags = VK_GEOMETRY_INSTANCE_TRIANGLE_CULL_DISABLE_BIT_NV;
|
geometryInstance.flags = VK_GEOMETRY_INSTANCE_TRIANGLE_CULL_DISABLE_BIT_NV;
|
||||||
instance.accelerationStructureHandle = bottomLevelAS.handle;
|
geometryInstance.accelerationStructureHandle = bottomLevelAS.handle;
|
||||||
|
|
||||||
VK_CHECK_RESULT(vulkanDevice->createBuffer(
|
VK_CHECK_RESULT(vulkanDevice->createBuffer(
|
||||||
VK_BUFFER_USAGE_RAY_TRACING_BIT_NV,
|
VK_BUFFER_USAGE_RAY_TRACING_BIT_NV,
|
||||||
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,
|
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT,
|
||||||
&instanceBuffer,
|
&instanceBuffer,
|
||||||
sizeof(instance),
|
sizeof(GeometryInstance),
|
||||||
&instance));
|
&geometryInstance));
|
||||||
|
|
||||||
createTopLevelAccelerationStructure();
|
createTopLevelAccelerationStructure();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue