Skip to content

Commit 4ed4199

Browse files
committed
Fix std::max template type deduction error on macOS in RayTracingBench.cpp
1 parent 0d84df2 commit 4ed4199

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cpp_src/benchmarks/RayTracingBench.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,9 @@ void RayTracingBench::buildAS() {
265265

266266
// Scratch buffer
267267
size_t scratchSize =
268-
std::max({triSizes.buildScratchSize, boxSizes.buildScratchSize,
269-
triScratch, boxScratch});
268+
std::max({static_cast<size_t>(triSizes.buildScratchSize),
269+
static_cast<size_t>(boxSizes.buildScratchSize), triScratch,
270+
boxScratch});
270271
scratchBuffer = context->createBuffer(scratchSize);
271272
VkDeviceAddress sAddr = vContext->getBufferDeviceAddress(scratchBuffer);
272273

0 commit comments

Comments
 (0)