|
|
@@ -173,12 +173,14 @@ namespace stl
|
|
|
|
|
|
#define BGFX_MAX_COMPUTE_BINDINGS 8
|
|
|
|
|
|
-#define BGFX_TEXTURE_INTERNAL_DEFAULT_SAMPLER UINT32_C(0x10000000)
|
|
|
+#define BGFX_TEXTURE_INTERNAL_DEFAULT_SAMPLER UINT32_C(0x10000000)
|
|
|
|
|
|
-#define BGFX_RESET_INTERNAL_FORCE UINT32_C(0x80000000)
|
|
|
+#define BGFX_RESET_INTERNAL_FORCE UINT32_C(0x80000000)
|
|
|
|
|
|
-#define BGFX_STATE_INTERNAL_SCISSOR UINT64_C(0x2000000000000000)
|
|
|
-#define BGFX_STATE_INTERNAL_OCCLUSION_QUERY UINT64_C(0x4000000000000000)
|
|
|
+#define BGFX_STATE_INTERNAL_SCISSOR UINT64_C(0x2000000000000000)
|
|
|
+#define BGFX_STATE_INTERNAL_OCCLUSION_QUERY UINT64_C(0x4000000000000000)
|
|
|
+
|
|
|
+#define BGFX_SUBMIT_INTERNAL_OCCLUSION_VISIBLE UINT8_C(0x80)
|
|
|
|
|
|
#define BGFX_RENDERER_DIRECT3D9_NAME "Direct3D 9"
|
|
|
#define BGFX_RENDERER_DIRECT3D11_NAME "Direct3D 11"
|
|
|
@@ -1374,7 +1376,7 @@ namespace bgfx
|
|
|
void setCondition(OcclusionQueryHandle _handle, bool _visible)
|
|
|
{
|
|
|
m_draw.m_occlusionQuery = _handle;
|
|
|
- BX_UNUSED(_visible);
|
|
|
+ m_draw.m_submitFlags |= _visible ? BGFX_SUBMIT_INTERNAL_OCCLUSION_VISIBLE : 0;
|
|
|
}
|
|
|
|
|
|
void setStencil(uint32_t _fstencil, uint32_t _bstencil)
|