diff options
| author | Yong He <yonghe@outlook.com> | 2022-01-10 13:30:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-10 13:30:41 -0800 |
| commit | ad9abad220df96d2155f6825f158b7f6327b7ea8 (patch) | |
| tree | 12b146961910c1b4aa6a68b3063ec3e68d2ce23d /tools/gfx/debug-layer.cpp | |
| parent | 0ac19741937e007ebb45791f53d413d21055feda (diff) | |
Various fixes to gfx. (#2074)
* Various gfx fixes.
* Fixup.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/debug-layer.cpp')
| -rw-r--r-- | tools/gfx/debug-layer.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
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<IAccelerationStructure*> innerAS; |
