From 5dffe3060a85ed97339820d32d78af00ee21be0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 7 May 2018 22:03:07 -0700 Subject: [PATCH] Cleanup. --- src/renderer_mtl.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/renderer_mtl.h b/src/renderer_mtl.h index 21ebef206..b7416e360 100644 --- a/src/renderer_mtl.h +++ b/src/renderer_mtl.h @@ -31,9 +31,11 @@ namespace bgfx { namespace mtl #endif } - inline bool macOSVersionEqualOrGreater(NSInteger _majorVersion, - NSInteger _minorVersion, - NSInteger _patchVersion) + inline bool macOSVersionEqualOrGreater( + NSInteger _majorVersion + , NSInteger _minorVersion + , NSInteger _patchVersion + ) { #if BX_PLATFORM_OSX NSOperatingSystemVersion v = [[NSProcessInfo processInfo] operatingSystemVersion]; @@ -825,6 +827,7 @@ namespace bgfx { namespace mtl bgfx::UniformHandle m_uniform; bool m_fragment; }; + SamplerInfo m_samplers[BGFX_CONFIG_MAX_TEXTURE_SAMPLERS]; uint32_t m_samplerCount; @@ -856,11 +859,13 @@ namespace bgfx { namespace mtl } void create(const Memory* _mem, uint32_t _flags, uint8_t _skip); + void destroy() { MTL_RELEASE(m_ptr); MTL_RELEASE(m_ptrStencil); } + void update( uint8_t _side , uint8_t _mip @@ -870,6 +875,7 @@ namespace bgfx { namespace mtl , uint16_t _pitch , const Memory* _mem ); + void commit( uint8_t _stage , bool _vertex @@ -912,7 +918,6 @@ namespace bgfx { namespace mtl void postReset(); uint16_t destroy(); -// SwapChainMtl* m_swapChain; uint32_t m_width; uint32_t m_height; uint16_t m_denseIdx;