diff options
Diffstat (limited to 'tools/gfx/cpu/render-cpu.cpp')
| -rw-r--r-- | tools/gfx/cpu/render-cpu.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/gfx/cpu/render-cpu.cpp b/tools/gfx/cpu/render-cpu.cpp index f635cf727..af1fcc65a 100644 --- a/tools/gfx/cpu/render-cpu.cpp +++ b/tools/gfx/cpu/render-cpu.cpp @@ -37,7 +37,8 @@ public: SlangResult init() { m_data = malloc(m_desc.sizeInBytes); - if(!m_data) return SLANG_E_OUT_OF_MEMORY; + if (!m_data) + return SLANG_E_OUT_OF_MEMORY; return SLANG_OK; } @@ -48,6 +49,11 @@ public: } void* m_data = nullptr; + + virtual SLANG_NO_THROW DeviceAddress SLANG_MCALL getDeviceAddress() override + { + return (DeviceAddress)m_data; + } }; struct CPUTextureBaseShapeInfo |
