From a16f603e3cdc661462419916eb1d6b3c61df91e7 Mon Sep 17 00:00:00 2001 From: Jamil Halabi Date: Tue, 15 Aug 2023 12:33:33 +0300 Subject: [PATCH] A follow up fix for the PrimitiveID capability (#3159) * Added a new capability to check for PrimitiveID support * A fix for PrimitiveID capability not listed in the debug log --- src/bgfx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 3443fb0454..60f0bdd1fb 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -1573,6 +1573,7 @@ namespace bgfx CAPS_FLAGS(BGFX_CAPS_VERTEX_ATTRIB_HALF), CAPS_FLAGS(BGFX_CAPS_VERTEX_ATTRIB_UINT10), CAPS_FLAGS(BGFX_CAPS_VERTEX_ID), + CAPS_FLAGS(BGFX_CAPS_PRIMITIVE_ID), CAPS_FLAGS(BGFX_CAPS_VIEWPORT_LAYER_ARRAY), #undef CAPS_FLAGS }; @@ -5789,6 +5790,7 @@ BX_STATIC_ASSERT( (0 | BGFX_CAPS_VERTEX_ATTRIB_HALF | BGFX_CAPS_VERTEX_ATTRIB_UINT10 | BGFX_CAPS_VERTEX_ID + | BGFX_CAPS_PRIMITIVE_ID | BGFX_CAPS_VIEWPORT_LAYER_ARRAY | BGFX_CAPS_DRAW_INDIRECT_COUNT ) == (0 @@ -5816,6 +5818,7 @@ BX_STATIC_ASSERT( (0 ^ BGFX_CAPS_VERTEX_ATTRIB_HALF ^ BGFX_CAPS_VERTEX_ATTRIB_UINT10 ^ BGFX_CAPS_VERTEX_ID + ^ BGFX_CAPS_PRIMITIVE_ID ^ BGFX_CAPS_VIEWPORT_LAYER_ARRAY ^ BGFX_CAPS_DRAW_INDIRECT_COUNT ) );