We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d84df2 commit 4ed4199Copy full SHA for 4ed4199
1 file changed
cpp_src/benchmarks/RayTracingBench.cpp
@@ -265,8 +265,9 @@ void RayTracingBench::buildAS() {
265
266
// Scratch buffer
267
size_t scratchSize =
268
- std::max({triSizes.buildScratchSize, boxSizes.buildScratchSize,
269
- triScratch, boxScratch});
+ std::max({static_cast<size_t>(triSizes.buildScratchSize),
+ static_cast<size_t>(boxSizes.buildScratchSize), triScratch,
270
+ boxScratch});
271
scratchBuffer = context->createBuffer(scratchSize);
272
VkDeviceAddress sAddr = vContext->getBufferDeviceAddress(scratchBuffer);
273
0 commit comments