diff options
| author | Yong He <yonghe@outlook.com> | 2021-11-22 11:24:25 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-22 11:24:25 -0800 |
| commit | fd46034bf2de59b8ad51743e62b26359678432f7 (patch) | |
| tree | 2879aac8cc49fea87fa2c168e69afae5c6e7b5df /tools/gfx/vulkan/render-vk.cpp | |
| parent | 87eb789ae03cbd7a79d5433cefb37f10bec86753 (diff) | |
gfx: Add more fixed function states and instancing draw calls. (#2023)
* gfx: Add more fixed function states and instancing draw calls.
* Fix clang error.
* Fix clang.
* Fixes.
* Add `AccelerationStructureCurrentSize` enum.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/vulkan/render-vk.cpp')
| -rw-r--r-- | tools/gfx/vulkan/render-vk.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/render-vk.cpp b/tools/gfx/vulkan/render-vk.cpp index 7dde2b712..5c3e75110 100644 --- a/tools/gfx/vulkan/render-vk.cpp +++ b/tools/gfx/vulkan/render-vk.cpp @@ -3991,6 +3991,34 @@ public: SLANG_UNUSED(samplePositions); SLANG_UNIMPLEMENTED_X("setSamplePositions"); } + + virtual SLANG_NO_THROW void SLANG_MCALL drawInstanced( + UInt vertexCount, + UInt instanceCount, + UInt startVertex, + UInt startInstanceLocation) override + { + SLANG_UNUSED(vertexCount); + SLANG_UNUSED(instanceCount); + SLANG_UNUSED(startVertex); + SLANG_UNUSED(startInstanceLocation); + SLANG_UNIMPLEMENTED_X("drawInstanced"); + } + + virtual SLANG_NO_THROW void SLANG_MCALL drawIndexedInstanced( + uint32_t indexCount, + uint32_t instanceCount, + uint32_t startIndexLocation, + int32_t baseVertexLocation, + uint32_t startInstanceLocation) override + { + SLANG_UNUSED(indexCount); + SLANG_UNUSED(instanceCount); + SLANG_UNUSED(startIndexLocation); + SLANG_UNUSED(baseVertexLocation); + SLANG_UNUSED(startInstanceLocation); + SLANG_UNIMPLEMENTED_X("drawIndexedInstanced"); + } }; RefPtr<RenderCommandEncoder> m_renderCommandEncoder; |
