summaryrefslogtreecommitdiffstats
path: root/tools/render-test
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-12-06 14:50:42 -0800
committerGitHub <noreply@github.com>2021-12-06 14:50:42 -0800
commitef4ee0b2d42b1fe9ce36c67526cf853343d98ea0 (patch)
tree15d4c441cb407a4f4d39318f525e471a98ff1d87 /tools/render-test
parent5cbd61774c6ef2209fa0afc79b1dbbb68514346b (diff)
Fix shader-toy example. (#2047)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/render-test')
-rw-r--r--tools/render-test/render-test-main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/render-test/render-test-main.cpp b/tools/render-test/render-test-main.cpp
index 1cb25bebb..96d0e4047 100644
--- a/tools/render-test/render-test-main.cpp
+++ b/tools/render-test/render-test-main.cpp
@@ -813,13 +813,13 @@ void RenderTestApp::_initializeAccelerationStructure()
IBufferResource::Desc asBufferDesc;
asBufferDesc.type = IResource::Type::Buffer;
asBufferDesc.defaultState = ResourceState::AccelerationStructure;
- asBufferDesc.sizeInBytes = accelerationStructurePrebuildInfo.resultDataMaxSize;
+ asBufferDesc.sizeInBytes = (size_t)accelerationStructurePrebuildInfo.resultDataMaxSize;
m_tlasBuffer = m_device->createBufferResource(asBufferDesc);
IBufferResource::Desc scratchBufferDesc;
scratchBufferDesc.type = IResource::Type::Buffer;
scratchBufferDesc.defaultState = ResourceState::UnorderedAccess;
- scratchBufferDesc.sizeInBytes = accelerationStructurePrebuildInfo.scratchDataSize;
+ scratchBufferDesc.sizeInBytes = (size_t)accelerationStructurePrebuildInfo.scratchDataSize;
ComPtr<IBufferResource> scratchBuffer = m_device->createBufferResource(scratchBufferDesc);
IAccelerationStructure::CreateDesc createDesc;