File tree Expand file tree Collapse file tree 3 files changed +330
-499
lines changed
Expand file tree Collapse file tree 3 files changed +330
-499
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ struct SGeomInfo
1414 uint32_t vertexStride : 29 ;
1515 uint32_t indexType : 2 ; // 16 bit, 32 bit or none
1616 uint32_t smoothNormals : 1 ; // flat for cube, rectangle, disk
17+ uint32_t padding;
1718};
1819
1920struct SPushConstants
Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ void main(uint32_t3 threadID : SV_DispatchThreadID)
125125 const int primID = spirv::rayQueryGetIntersectionPrimitiveIndexKHR (query, true );
126126
127127 // TODO: candidate for `bda::__ptr<SGeomInfo>`
128- const SGeomInfo geom = vk::RawBufferLoad<SGeomInfo>(pc.geometryInfoBuffer + instID * sizeof (SGeomInfo));
129-
128+ const SGeomInfo geom = vk::RawBufferLoad<SGeomInfo>(pc.geometryInfoBuffer + instID * sizeof (SGeomInfo), 8 );
129+
130130 float3 normals;
131131 if (jit::device_capabilities::rayTracingPositionFetch)
132132 {
You can’t perform that action at this time.
0 commit comments