From efebfada38cd5252da62f7618c7f95e3ab180fbd Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 17 Nov 2021 13:20:13 -0800 Subject: gfx ShaderObject interface update, getTextureAllocationInfo() (#2019) * gfx ShaderObject interface update, getTextureAllocationInfo() * Fix render-vk compiler warnings and errors. Co-authored-by: Yong He --- tools/gfx/cuda/render-cuda.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tools/gfx/cuda/render-cuda.cpp') diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp index 020cd82f2..be3379c71 100644 --- a/tools/gfx/cuda/render-cuda.cpp +++ b/tools/gfx/cuda/render-cuda.cpp @@ -557,6 +557,17 @@ public: *outEntryPoint = nullptr; return SLANG_OK; } + + virtual SLANG_NO_THROW const void* SLANG_MCALL getRawData() override + { + return m_data.getBuffer(); + } + + virtual SLANG_NO_THROW size_t SLANG_MCALL getSize() override + { + return (size_t)m_data.getCount(); + } + virtual SLANG_NO_THROW Result SLANG_MCALL setData(ShaderOffset const& offset, void const* data, size_t size) override { -- cgit v1.2.3