diff options
| author | Yong He <yonghe@outlook.com> | 2021-04-23 10:54:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-23 10:54:43 -0700 |
| commit | ff1d19079fb789a4d64ee16b3212491fdff9bf9a (patch) | |
| tree | b19a16004c025f3da73778cee5d14690c68ac622 /tools/gfx/d3d12/render-d3d12.cpp | |
| parent | 79e722338cd59aab74b4c57600c5ac6bce3bcd25 (diff) | |
Fix `model-viewer` crash when using Vulkan. (#1804)
Diffstat (limited to 'tools/gfx/d3d12/render-d3d12.cpp')
| -rw-r--r-- | tools/gfx/d3d12/render-d3d12.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp index 5026ad111..fd1121d1b 100644 --- a/tools/gfx/d3d12/render-d3d12.cpp +++ b/tools/gfx/d3d12/render-d3d12.cpp @@ -508,7 +508,7 @@ public: uint32_t viewHeapSize, uint32_t samplerHeapSize) { - Super::init(desc, device); + Super::init(desc, D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT, device); auto d3dDevice = device->m_device; SLANG_RETURN_ON_FAIL(d3dDevice->CreateCommandAllocator( D3D12_COMMAND_LIST_TYPE_DIRECT, IID_PPV_ARGS(m_commandAllocator.writeRef()))); |
