summaryrefslogtreecommitdiff
path: root/tools/gfx/cpu/render-cpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/cpu/render-cpu.cpp')
-rw-r--r--tools/gfx/cpu/render-cpu.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/gfx/cpu/render-cpu.cpp b/tools/gfx/cpu/render-cpu.cpp
index 15014f6e9..723dba10e 100644
--- a/tools/gfx/cpu/render-cpu.cpp
+++ b/tools/gfx/cpu/render-cpu.cpp
@@ -54,6 +54,21 @@ public:
{
return (DeviceAddress)m_data;
}
+
+ virtual SLANG_NO_THROW Result SLANG_MCALL
+ map(MemoryRange* rangeToRead, void** outPointer) override
+ {
+ SLANG_UNUSED(rangeToRead);
+ if (outPointer)
+ *outPointer = m_data;
+ return SLANG_OK;
+ }
+
+ virtual SLANG_NO_THROW Result SLANG_MCALL unmap(MemoryRange* writtenRange) override
+ {
+ SLANG_UNUSED(writtenRange);
+ return SLANG_OK;
+ }
};
struct CPUTextureBaseShapeInfo