From ad9abad220df96d2155f6825f158b7f6327b7ea8 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 10 Jan 2022 13:30:41 -0800 Subject: Various fixes to gfx. (#2074) * Various gfx fixes. * Fixup. Co-authored-by: Yong He --- tools/gfx/debug-layer.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'tools/gfx/debug-layer.cpp') diff --git a/tools/gfx/debug-layer.cpp b/tools/gfx/debug-layer.cpp index 2855ee2f4..b0b3ae30b 100644 --- a/tools/gfx/debug-layer.cpp +++ b/tools/gfx/debug-layer.cpp @@ -843,6 +843,17 @@ const char* DebugBufferResource::getDebugName() return baseObject->getDebugName(); } +Result DebugBufferResource::map(MemoryRange* rangeToRead, void** outPointer) +{ + SLANG_GFX_API_FUNC; + return baseObject->map(rangeToRead, outPointer); +} + +Result DebugBufferResource::unmap(MemoryRange* writtenRange) +{ + return baseObject->unmap(writtenRange); +} + IResource::Type DebugTextureResource::getType() { SLANG_GFX_API_FUNC; @@ -1435,8 +1446,8 @@ void DebugRayTracingCommandEncoder::deserializeAccelerationStructure( void DebugRayTracingCommandEncoder::memoryBarrier( int count, IAccelerationStructure* const* structures, - MemoryType::Enum sourceAccess, - MemoryType::Enum destAccess) + AccessFlag sourceAccess, + AccessFlag destAccess) { SLANG_GFX_API_FUNC; List innerAS; -- cgit v1.2.3