Skip to content

Commit

Permalink
A follow up fix for the PrimitiveID capability (#3159)
Browse files Browse the repository at this point in the history
* Added a new capability to check for PrimitiveID support

* A fix for PrimitiveID capability not listed in the debug log
  • Loading branch information
jay3d authored Aug 15, 2023
1 parent 82b70a0 commit a16f603
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bgfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
) );
Expand Down

0 comments on commit a16f603

Please sign in to comment.