From fd46034bf2de59b8ad51743e62b26359678432f7 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 22 Nov 2021 11:24:25 -0800 Subject: 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 --- tools/gfx/immediate-renderer-base.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'tools/gfx/immediate-renderer-base.cpp') diff --git a/tools/gfx/immediate-renderer-base.cpp b/tools/gfx/immediate-renderer-base.cpp index b4763a881..360370aa0 100644 --- a/tools/gfx/immediate-renderer-base.cpp +++ b/tools/gfx/immediate-renderer-base.cpp @@ -194,6 +194,34 @@ public: SLANG_UNUSED(samplePositions); return SLANG_E_NOT_AVAILABLE; } + + 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"); + } }; RenderCommandEncoderImpl m_renderCommandEncoder; -- cgit v1.2.3