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/debug-layer.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/debug-layer.cpp')
| -rw-r--r-- | tools/gfx/debug-layer.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/gfx/debug-layer.cpp b/tools/gfx/debug-layer.cpp index 0fff101ad..6266a6175 100644 --- a/tools/gfx/debug-layer.cpp +++ b/tools/gfx/debug-layer.cpp @@ -1149,6 +1149,26 @@ Result DebugRenderCommandEncoder::setSamplePositions( return baseObject->setSamplePositions(samplesPerPixel, pixelCount, samplePositions); } +void DebugRenderCommandEncoder::drawInstanced( + UInt vertexCount, UInt instanceCount, UInt startVertex, UInt startInstanceLocation) +{ + SLANG_GFX_API_FUNC; + return baseObject->drawInstanced( + vertexCount, instanceCount, startVertex, startInstanceLocation); +} + +void DebugRenderCommandEncoder::drawIndexedInstanced( + uint32_t indexCount, + uint32_t instanceCount, + uint32_t startIndexLocation, + int32_t baseVertexLocation, + uint32_t startInstanceLocation) +{ + SLANG_GFX_API_FUNC; + return baseObject->drawIndexedInstanced( + indexCount, instanceCount, startIndexLocation, baseVertexLocation, startInstanceLocation); +} + void DebugResourceCommandEncoder::endEncoding() { SLANG_GFX_API_FUNC; |
