summaryrefslogtreecommitdiffstats
path: root/tools/gfx/d3d12/d3d12-buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/d3d12/d3d12-buffer.cpp')
-rw-r--r--tools/gfx/d3d12/d3d12-buffer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-buffer.cpp b/tools/gfx/d3d12/d3d12-buffer.cpp
index 42babfae6..7d3376607 100644
--- a/tools/gfx/d3d12/d3d12-buffer.cpp
+++ b/tools/gfx/d3d12/d3d12-buffer.cpp
@@ -35,6 +35,9 @@ Result BufferResourceImpl::getNativeResourceHandle(InteropHandle* outHandle)
Result BufferResourceImpl::getSharedHandle(InteropHandle* outHandle)
{
+#if !SLANG_WINDOWS_FAMILY
+ return SLANG_E_NOT_IMPLEMENTED;
+#else
// Check if a shared handle already exists for this resource.
if (sharedHandle.handleValue != 0)
{
@@ -51,6 +54,7 @@ Result BufferResourceImpl::getSharedHandle(InteropHandle* outHandle)
outHandle->api = InteropHandleAPI::D3D12;
sharedHandle = *outHandle;
return SLANG_OK;
+#endif
}
Result BufferResourceImpl::map(MemoryRange* rangeToRead, void** outPointer)