diff options
| author | Yong He <yonghe@outlook.com> | 2021-11-17 13:20:13 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-17 13:20:13 -0800 |
| commit | efebfada38cd5252da62f7618c7f95e3ab180fbd (patch) | |
| tree | ca36ae2cb1e1046666103c678ab9a8e766b53efb /tools/gfx/mutable-shader-object.h | |
| parent | 763d0b5acb584a4d2eca5e02922afed7d499141e (diff) | |
gfx ShaderObject interface update, getTextureAllocationInfo() (#2019)
* gfx ShaderObject interface update, getTextureAllocationInfo()
* Fix render-vk compiler warnings and errors.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/mutable-shader-object.h')
| -rw-r--r-- | tools/gfx/mutable-shader-object.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gfx/mutable-shader-object.h b/tools/gfx/mutable-shader-object.h index 17c025580..3c551023a 100644 --- a/tools/gfx/mutable-shader-object.h +++ b/tools/gfx/mutable-shader-object.h @@ -115,6 +115,14 @@ namespace gfx return SLANG_OK; } public: + virtual SLANG_NO_THROW const void* SLANG_MCALL getRawData() override + { + return this->m_data.getBuffer(); + } + virtual SLANG_NO_THROW size_t SLANG_MCALL getSize() override + { + return this->m_data.getCount(); + } virtual SLANG_NO_THROW Result SLANG_MCALL setData(ShaderOffset const& offset, void const* data, size_t size) override { if (!size) return SLANG_OK; |
