From 873342df77f3cf31c29782d2aaf9efca08ca2492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 25 May 2018 18:01:49 -0700 Subject: [PATCH] Cleanup. --- src/bgfx_p.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 132b875b0..1a5131a6b 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -25,23 +25,23 @@ #include // Check handle, cannot be bgfx::kInvalidHandle and must be valid. -#define BGFX_CHECK_HANDLE(_desc, _handleAlloc, _handle) \ - BX_CHECK(isValid(_handle) \ - && _handleAlloc.isValid(_handle.idx) \ +#define BGFX_CHECK_HANDLE(_desc, _handleAlloc, _handle) \ + BX_CHECK(isValid(_handle) \ + && _handleAlloc.isValid(_handle.idx) \ , "Invalid handle. %s handle: %d (max %d)" \ - , _desc \ - , _handle.idx \ - , _handleAlloc.getMaxHandles() \ + , _desc \ + , _handle.idx \ + , _handleAlloc.getMaxHandles() \ ) // Check handle, it's ok to be bgfx::kInvalidHandle or must be valid. #define BGFX_CHECK_HANDLE_INVALID_OK(_desc, _handleAlloc, _handle) \ - BX_CHECK(!isValid(_handle) \ - || _handleAlloc.isValid(_handle.idx) \ - , "Invalid handle. %s handle: %d (max %d)" \ - , _desc \ - , _handle.idx \ - , _handleAlloc.getMaxHandles() \ + BX_CHECK(!isValid(_handle) \ + || _handleAlloc.isValid(_handle.idx) \ + , "Invalid handle. %s handle: %d (max %d)" \ + , _desc \ + , _handle.idx \ + , _handleAlloc.getMaxHandles() \ ) #if BGFX_CONFIG_MULTITHREADED @@ -178,7 +178,7 @@ namespace tinystl void sort() { bx::quickSort( - this->begin() + this->begin() , uint32_t(this->end() - this->begin() ) , sizeof(T) , [](const void* _a, const void* _b) -> int32_t { @@ -207,7 +207,7 @@ namespace stl = std; # include #endif // BX_PLATFORM_* -#define BGFX_MAX_COMPUTE_BINDINGS 8 +#define BGFX_MAX_COMPUTE_BINDINGS BGFX_CONFIG_MAX_TEXTURE_SAMPLERS #define BGFX_TEXTURE_INTERNAL_DEFAULT_SAMPLER UINT32_C(0x10000000) #define BGFX_TEXTURE_INTERNAL_SHARED UINT32_C(0x20000000)