diff options
Diffstat (limited to '3rdparty/bgfx/src/renderer_mtl.h')
-rw-r--r-- | 3rdparty/bgfx/src/renderer_mtl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/3rdparty/bgfx/src/renderer_mtl.h b/3rdparty/bgfx/src/renderer_mtl.h index 42145e0c036..13f1bf6b7af 100644 --- a/3rdparty/bgfx/src/renderer_mtl.h +++ b/3rdparty/bgfx/src/renderer_mtl.h @@ -87,6 +87,16 @@ namespace bgfx { namespace mtl destinationSlice:_destinationSlice destinationLevel:_destinationLevel destinationOrigin:_destinationOrigin]; } + void synchronizeTexture(id<MTLTexture> _texture, NSUInteger _slice, NSUInteger _level) + { + [m_obj synchronizeTexture:_texture slice:_slice level:_level]; + } + + void synchronizeResource(id<MTLResource> _resource) + { + [m_obj synchronizeResource:_resource]; + } + void endEncoding() { [m_obj endEncoding]; |