bgfxdefines.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. /*
  2. * Copyright 2011-2014 Branimir Karadzic. All rights reserved.
  3. * License: http://www.opensource.org/licenses/BSD-2-Clause
  4. */
  5. #ifndef BGFX_DEFINES_H_HEADER_GUARD
  6. #define BGFX_DEFINES_H_HEADER_GUARD
  7. ///
  8. #define BGFX_STATE_RGB_WRITE UINT64_C(0x0000000000000001)
  9. #define BGFX_STATE_ALPHA_WRITE UINT64_C(0x0000000000000002)
  10. #define BGFX_STATE_DEPTH_WRITE UINT64_C(0x0000000000000004)
  11. #define BGFX_STATE_DEPTH_TEST_LESS UINT64_C(0x0000000000000010)
  12. #define BGFX_STATE_DEPTH_TEST_LEQUAL UINT64_C(0x0000000000000020)
  13. #define BGFX_STATE_DEPTH_TEST_EQUAL UINT64_C(0x0000000000000030)
  14. #define BGFX_STATE_DEPTH_TEST_GEQUAL UINT64_C(0x0000000000000040)
  15. #define BGFX_STATE_DEPTH_TEST_GREATER UINT64_C(0x0000000000000050)
  16. #define BGFX_STATE_DEPTH_TEST_NOTEQUAL UINT64_C(0x0000000000000060)
  17. #define BGFX_STATE_DEPTH_TEST_NEVER UINT64_C(0x0000000000000070)
  18. #define BGFX_STATE_DEPTH_TEST_ALWAYS UINT64_C(0x0000000000000080)
  19. #define BGFX_STATE_DEPTH_TEST_SHIFT 4
  20. #define BGFX_STATE_DEPTH_TEST_MASK UINT64_C(0x00000000000000f0)
  21. #define BGFX_STATE_BLEND_ZERO UINT64_C(0x0000000000001000)
  22. #define BGFX_STATE_BLEND_ONE UINT64_C(0x0000000000002000)
  23. #define BGFX_STATE_BLEND_SRC_COLOR UINT64_C(0x0000000000003000)
  24. #define BGFX_STATE_BLEND_INV_SRC_COLOR UINT64_C(0x0000000000004000)
  25. #define BGFX_STATE_BLEND_SRC_ALPHA UINT64_C(0x0000000000005000)
  26. #define BGFX_STATE_BLEND_INV_SRC_ALPHA UINT64_C(0x0000000000006000)
  27. #define BGFX_STATE_BLEND_DST_ALPHA UINT64_C(0x0000000000007000)
  28. #define BGFX_STATE_BLEND_INV_DST_ALPHA UINT64_C(0x0000000000008000)
  29. #define BGFX_STATE_BLEND_DST_COLOR UINT64_C(0x0000000000009000)
  30. #define BGFX_STATE_BLEND_INV_DST_COLOR UINT64_C(0x000000000000a000)
  31. #define BGFX_STATE_BLEND_SRC_ALPHA_SAT UINT64_C(0x000000000000b000)
  32. #define BGFX_STATE_BLEND_FACTOR UINT64_C(0x000000000000c000)
  33. #define BGFX_STATE_BLEND_INV_FACTOR UINT64_C(0x000000000000d000)
  34. #define BGFX_STATE_BLEND_SHIFT 12
  35. #define BGFX_STATE_BLEND_MASK UINT64_C(0x000000000ffff000)
  36. #define BGFX_STATE_BLEND_EQUATION_SUB UINT64_C(0x0000000010000000)
  37. #define BGFX_STATE_BLEND_EQUATION_REVSUB UINT64_C(0x0000000020000000)
  38. #define BGFX_STATE_BLEND_EQUATION_MIN UINT64_C(0x0000000030000000)
  39. #define BGFX_STATE_BLEND_EQUATION_MAX UINT64_C(0x0000000040000000)
  40. #define BGFX_STATE_BLEND_EQUATION_SHIFT 28
  41. #define BGFX_STATE_BLEND_EQUATION_MASK UINT64_C(0x00000003f0000000)
  42. #define BGFX_STATE_BLEND_INDEPENDENT UINT64_C(0x0000000400000000)
  43. #define BGFX_STATE_CULL_CW UINT64_C(0x0000001000000000)
  44. #define BGFX_STATE_CULL_CCW UINT64_C(0x0000002000000000)
  45. #define BGFX_STATE_CULL_SHIFT 36
  46. #define BGFX_STATE_CULL_MASK UINT64_C(0x0000003000000000)
  47. #define BGFX_STATE_ALPHA_REF_SHIFT 40
  48. #define BGFX_STATE_ALPHA_REF_MASK UINT64_C(0x0000ff0000000000)
  49. #define BGFX_STATE_PT_TRISTRIP UINT64_C(0x0001000000000000)
  50. #define BGFX_STATE_PT_LINES UINT64_C(0x0002000000000000)
  51. #define BGFX_STATE_PT_LINESTRIP UINT64_C(0x0003000000000000)
  52. #define BGFX_STATE_PT_POINTS UINT64_C(0x0004000000000000)
  53. #define BGFX_STATE_PT_SHIFT 48
  54. #define BGFX_STATE_PT_MASK UINT64_C(0x0007000000000000)
  55. #define BGFX_STATE_POINT_SIZE_SHIFT 52
  56. #define BGFX_STATE_POINT_SIZE_MASK UINT64_C(0x0ff0000000000000)
  57. #define BGFX_STATE_MSAA UINT64_C(0x1000000000000000)
  58. #define BGFX_STATE_RESERVED_MASK UINT64_C(0xe000000000000000)
  59. #define BGFX_STATE_NONE UINT64_C(0x0000000000000000)
  60. #define BGFX_STATE_MASK UINT64_C(0xffffffffffffffff)
  61. #define BGFX_STATE_DEFAULT (0 \
  62. | BGFX_STATE_RGB_WRITE \
  63. | BGFX_STATE_ALPHA_WRITE \
  64. | BGFX_STATE_DEPTH_TEST_LESS \
  65. | BGFX_STATE_DEPTH_WRITE \
  66. | BGFX_STATE_CULL_CW \
  67. | BGFX_STATE_MSAA \
  68. )
  69. #define BGFX_STATE_ALPHA_REF(_ref) ( (uint64_t(_ref)<<BGFX_STATE_ALPHA_REF_SHIFT)&BGFX_STATE_ALPHA_REF_MASK)
  70. #define BGFX_STATE_POINT_SIZE(_size) ( (uint64_t(_size)<<BGFX_STATE_POINT_SIZE_SHIFT)&BGFX_STATE_POINT_SIZE_MASK)
  71. ///
  72. #define BGFX_STATE_BLEND_FUNC_SEPARATE(_srcRGB, _dstRGB, _srcA, _dstA) (0 \
  73. | ( (uint64_t(_srcRGB)|(uint64_t(_dstRGB)<<4) ) ) \
  74. | ( (uint64_t(_srcA )|(uint64_t(_dstA )<<4) )<<8) \
  75. )
  76. #define BGFX_STATE_BLEND_EQUATION_SEPARATE(_rgb, _a) (uint64_t(_rgb)|(uint64_t(_a)<<3) )
  77. ///
  78. #define BGFX_STATE_BLEND_FUNC(_src, _dst) BGFX_STATE_BLEND_FUNC_SEPARATE(_src, _dst, _src, _dst)
  79. #define BGFX_STATE_BLEND_EQUATION(_equation) BGFX_STATE_BLEND_EQUATION_SEPARATE(_equation, _equation)
  80. #define BGFX_STATE_BLEND_ADD (BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_ONE, BGFX_STATE_BLEND_ONE ) )
  81. #define BGFX_STATE_BLEND_ALPHA (BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_SRC_ALPHA, BGFX_STATE_BLEND_INV_SRC_ALPHA) )
  82. #define BGFX_STATE_BLEND_DARKEN (BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_ONE, BGFX_STATE_BLEND_ONE ) | BGFX_STATE_BLEND_EQUATION(BGFX_STATE_BLEND_EQUATION_MIN) )
  83. #define BGFX_STATE_BLEND_LIGHTEN (BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_ONE, BGFX_STATE_BLEND_ONE ) | BGFX_STATE_BLEND_EQUATION(BGFX_STATE_BLEND_EQUATION_MAX) )
  84. #define BGFX_STATE_BLEND_MULTIPLY (BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_DST_COLOR, BGFX_STATE_BLEND_ZERO ) )
  85. #define BGFX_STATE_BLEND_NORMAL (BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_ONE, BGFX_STATE_BLEND_INV_SRC_ALPHA) )
  86. #define BGFX_STATE_BLEND_SCREEN (BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_ONE, BGFX_STATE_BLEND_INV_SRC_COLOR) )
  87. #define BGFX_STATE_BLEND_LINEAR_BURN (BGFX_STATE_BLEND_FUNC(BGFX_STATE_BLEND_DST_COLOR, BGFX_STATE_BLEND_INV_DST_COLOR) | BGFX_STATE_BLEND_EQUATION(BGFX_STATE_BLEND_EQUATION_SUB) )
  88. ///
  89. #define BGFX_STATE_BLEND_FUNC_RT_x(_src, _dst) (0 \
  90. | ( uint32_t( (_src)>>BGFX_STATE_BLEND_SHIFT) \
  91. | ( uint32_t( (_dst)>>BGFX_STATE_BLEND_SHIFT)<<4) ) \
  92. )
  93. #define BGFX_STATE_BLEND_FUNC_RT_xE(_src, _dst, _equation) (0 \
  94. | BGFX_STATE_BLEND_FUNC_RT_x(_src, _dst) \
  95. | ( uint32_t( (_equation)>>BGFX_STATE_BLEND_EQUATION_SHIFT)<<8) \
  96. )
  97. #define BGFX_STATE_BLEND_FUNC_RT_1(_src, _dst) (BGFX_STATE_BLEND_FUNC_RT_x(_src, _dst)<< 0)
  98. #define BGFX_STATE_BLEND_FUNC_RT_2(_src, _dst) (BGFX_STATE_BLEND_FUNC_RT_x(_src, _dst)<<11)
  99. #define BGFX_STATE_BLEND_FUNC_RT_3(_src, _dst) (BGFX_STATE_BLEND_FUNC_RT_x(_src, _dst)<<22)
  100. #define BGFX_STATE_BLEND_FUNC_RT_1E(_src, _dst, _equation) (BGFX_STATE_BLEND_FUNC_RT_xE(_src, _dst, _equation)<< 0)
  101. #define BGFX_STATE_BLEND_FUNC_RT_2E(_src, _dst, _equation) (BGFX_STATE_BLEND_FUNC_RT_xE(_src, _dst, _equation)<<11)
  102. #define BGFX_STATE_BLEND_FUNC_RT_3E(_src, _dst, _equation) (BGFX_STATE_BLEND_FUNC_RT_xE(_src, _dst, _equation)<<22)
  103. ///
  104. #define BGFX_STENCIL_FUNC_REF_SHIFT 0
  105. #define BGFX_STENCIL_FUNC_REF_MASK UINT32_C(0x000000ff)
  106. #define BGFX_STENCIL_FUNC_RMASK_SHIFT 8
  107. #define BGFX_STENCIL_FUNC_RMASK_MASK UINT32_C(0x0000ff00)
  108. #define BGFX_STENCIL_TEST_LESS UINT32_C(0x00010000)
  109. #define BGFX_STENCIL_TEST_LEQUAL UINT32_C(0x00020000)
  110. #define BGFX_STENCIL_TEST_EQUAL UINT32_C(0x00030000)
  111. #define BGFX_STENCIL_TEST_GEQUAL UINT32_C(0x00040000)
  112. #define BGFX_STENCIL_TEST_GREATER UINT32_C(0x00050000)
  113. #define BGFX_STENCIL_TEST_NOTEQUAL UINT32_C(0x00060000)
  114. #define BGFX_STENCIL_TEST_NEVER UINT32_C(0x00070000)
  115. #define BGFX_STENCIL_TEST_ALWAYS UINT32_C(0x00080000)
  116. #define BGFX_STENCIL_TEST_SHIFT 16
  117. #define BGFX_STENCIL_TEST_MASK UINT32_C(0x000f0000)
  118. #define BGFX_STENCIL_OP_FAIL_S_ZERO UINT32_C(0x00000000)
  119. #define BGFX_STENCIL_OP_FAIL_S_KEEP UINT32_C(0x00100000)
  120. #define BGFX_STENCIL_OP_FAIL_S_REPLACE UINT32_C(0x00200000)
  121. #define BGFX_STENCIL_OP_FAIL_S_INCR UINT32_C(0x00300000)
  122. #define BGFX_STENCIL_OP_FAIL_S_INCRSAT UINT32_C(0x00400000)
  123. #define BGFX_STENCIL_OP_FAIL_S_DECR UINT32_C(0x00500000)
  124. #define BGFX_STENCIL_OP_FAIL_S_DECRSAT UINT32_C(0x00600000)
  125. #define BGFX_STENCIL_OP_FAIL_S_INVERT UINT32_C(0x00700000)
  126. #define BGFX_STENCIL_OP_FAIL_S_SHIFT 20
  127. #define BGFX_STENCIL_OP_FAIL_S_MASK UINT32_C(0x00f00000)
  128. #define BGFX_STENCIL_OP_FAIL_Z_ZERO UINT32_C(0x00000000)
  129. #define BGFX_STENCIL_OP_FAIL_Z_KEEP UINT32_C(0x01000000)
  130. #define BGFX_STENCIL_OP_FAIL_Z_REPLACE UINT32_C(0x02000000)
  131. #define BGFX_STENCIL_OP_FAIL_Z_INCR UINT32_C(0x03000000)
  132. #define BGFX_STENCIL_OP_FAIL_Z_INCRSAT UINT32_C(0x04000000)
  133. #define BGFX_STENCIL_OP_FAIL_Z_DECR UINT32_C(0x05000000)
  134. #define BGFX_STENCIL_OP_FAIL_Z_DECRSAT UINT32_C(0x06000000)
  135. #define BGFX_STENCIL_OP_FAIL_Z_INVERT UINT32_C(0x07000000)
  136. #define BGFX_STENCIL_OP_FAIL_Z_SHIFT 24
  137. #define BGFX_STENCIL_OP_FAIL_Z_MASK UINT32_C(0x0f000000)
  138. #define BGFX_STENCIL_OP_PASS_Z_ZERO UINT32_C(0x00000000)
  139. #define BGFX_STENCIL_OP_PASS_Z_KEEP UINT32_C(0x10000000)
  140. #define BGFX_STENCIL_OP_PASS_Z_REPLACE UINT32_C(0x20000000)
  141. #define BGFX_STENCIL_OP_PASS_Z_INCR UINT32_C(0x30000000)
  142. #define BGFX_STENCIL_OP_PASS_Z_INCRSAT UINT32_C(0x40000000)
  143. #define BGFX_STENCIL_OP_PASS_Z_DECR UINT32_C(0x50000000)
  144. #define BGFX_STENCIL_OP_PASS_Z_DECRSAT UINT32_C(0x60000000)
  145. #define BGFX_STENCIL_OP_PASS_Z_INVERT UINT32_C(0x70000000)
  146. #define BGFX_STENCIL_OP_PASS_Z_SHIFT 28
  147. #define BGFX_STENCIL_OP_PASS_Z_MASK UINT32_C(0xf0000000)
  148. #define BGFX_STENCIL_NONE UINT32_C(0x00000000)
  149. #define BGFX_STENCIL_MASK UINT32_C(0xffffffff)
  150. #define BGFX_STENCIL_DEFAULT UINT32_C(0x00000000)
  151. #define BGFX_STENCIL_FUNC_REF(_ref) ( (uint32_t(_ref)<<BGFX_STENCIL_FUNC_REF_SHIFT)&BGFX_STENCIL_FUNC_REF_MASK)
  152. #define BGFX_STENCIL_FUNC_RMASK(_mask) ( (uint32_t(_mask)<<BGFX_STENCIL_FUNC_RMASK_SHIFT)&BGFX_STENCIL_FUNC_RMASK_MASK)
  153. ///
  154. #define BGFX_CLEAR_NONE UINT8_C(0x00)
  155. #define BGFX_CLEAR_COLOR_BIT UINT8_C(0x01)
  156. #define BGFX_CLEAR_DEPTH_BIT UINT8_C(0x02)
  157. #define BGFX_CLEAR_STENCIL_BIT UINT8_C(0x04)
  158. ///
  159. #define BGFX_DEBUG_NONE UINT32_C(0x00000000)
  160. #define BGFX_DEBUG_WIREFRAME UINT32_C(0x00000001)
  161. #define BGFX_DEBUG_IFH UINT32_C(0x00000002)
  162. #define BGFX_DEBUG_STATS UINT32_C(0x00000004)
  163. #define BGFX_DEBUG_TEXT UINT32_C(0x00000008)
  164. ///
  165. #define BGFX_TEXTURE_NONE UINT32_C(0x00000000)
  166. #define BGFX_TEXTURE_U_MIRROR UINT32_C(0x00000001)
  167. #define BGFX_TEXTURE_U_CLAMP UINT32_C(0x00000002)
  168. #define BGFX_TEXTURE_U_SHIFT 0
  169. #define BGFX_TEXTURE_U_MASK UINT32_C(0x00000003)
  170. #define BGFX_TEXTURE_V_MIRROR UINT32_C(0x00000004)
  171. #define BGFX_TEXTURE_V_CLAMP UINT32_C(0x00000008)
  172. #define BGFX_TEXTURE_V_SHIFT 2
  173. #define BGFX_TEXTURE_V_MASK UINT32_C(0x0000000c)
  174. #define BGFX_TEXTURE_W_MIRROR UINT32_C(0x00000010)
  175. #define BGFX_TEXTURE_W_CLAMP UINT32_C(0x00000020)
  176. #define BGFX_TEXTURE_W_SHIFT 4
  177. #define BGFX_TEXTURE_W_MASK UINT32_C(0x00000030)
  178. #define BGFX_TEXTURE_MIN_POINT UINT32_C(0x00000040)
  179. #define BGFX_TEXTURE_MIN_ANISOTROPIC UINT32_C(0x00000080)
  180. #define BGFX_TEXTURE_MIN_SHIFT 6
  181. #define BGFX_TEXTURE_MIN_MASK UINT32_C(0x000000c0)
  182. #define BGFX_TEXTURE_MAG_POINT UINT32_C(0x00000100)
  183. #define BGFX_TEXTURE_MAG_ANISOTROPIC UINT32_C(0x00000200)
  184. #define BGFX_TEXTURE_MAG_SHIFT 8
  185. #define BGFX_TEXTURE_MAG_MASK UINT32_C(0x00000300)
  186. #define BGFX_TEXTURE_MIP_POINT UINT32_C(0x00000400)
  187. #define BGFX_TEXTURE_MIP_SHIFT 10
  188. #define BGFX_TEXTURE_MIP_MASK UINT32_C(0x00000400)
  189. #define BGFX_TEXTURE_RT UINT32_C(0x00001000)
  190. #define BGFX_TEXTURE_RT_MSAA_X2 UINT32_C(0x00002000)
  191. #define BGFX_TEXTURE_RT_MSAA_X4 UINT32_C(0x00003000)
  192. #define BGFX_TEXTURE_RT_MSAA_X8 UINT32_C(0x00004000)
  193. #define BGFX_TEXTURE_RT_MSAA_X16 UINT32_C(0x00005000)
  194. #define BGFX_TEXTURE_RT_MSAA_SHIFT 12
  195. #define BGFX_TEXTURE_RT_MSAA_MASK UINT32_C(0x00007000)
  196. #define BGFX_TEXTURE_RT_BUFFER_ONLY UINT32_C(0x00008000)
  197. #define BGFX_TEXTURE_RT_MASK UINT32_C(0x0000f000)
  198. #define BGFX_TEXTURE_COMPARE_LESS UINT32_C(0x00010000)
  199. #define BGFX_TEXTURE_COMPARE_LEQUAL UINT32_C(0x00020000)
  200. #define BGFX_TEXTURE_COMPARE_EQUAL UINT32_C(0x00030000)
  201. #define BGFX_TEXTURE_COMPARE_GEQUAL UINT32_C(0x00040000)
  202. #define BGFX_TEXTURE_COMPARE_GREATER UINT32_C(0x00050000)
  203. #define BGFX_TEXTURE_COMPARE_NOTEQUAL UINT32_C(0x00060000)
  204. #define BGFX_TEXTURE_COMPARE_NEVER UINT32_C(0x00070000)
  205. #define BGFX_TEXTURE_COMPARE_ALWAYS UINT32_C(0x00080000)
  206. #define BGFX_TEXTURE_COMPARE_SHIFT 16
  207. #define BGFX_TEXTURE_COMPARE_MASK UINT32_C(0x000f0000)
  208. #define BGFX_TEXTURE_COMPUTE_WRITE UINT32_C(0x00100000)
  209. #define BGFX_TEXTURE_RESERVED_SHIFT 24
  210. #define BGFX_TEXTURE_RESERVED_MASK UINT32_C(0xff000000)
  211. #define BGFX_TEXTURE_SAMPLER_BITS_MASK (0 \
  212. | BGFX_TEXTURE_U_MASK \
  213. | BGFX_TEXTURE_V_MASK \
  214. | BGFX_TEXTURE_W_MASK \
  215. | BGFX_TEXTURE_MIN_MASK \
  216. | BGFX_TEXTURE_MAG_MASK \
  217. | BGFX_TEXTURE_MIP_MASK \
  218. | BGFX_TEXTURE_COMPARE_MASK \
  219. )
  220. ///
  221. #define BGFX_RESET_NONE UINT32_C(0x00000000)
  222. #define BGFX_RESET_FULLSCREEN UINT32_C(0x00000001)
  223. #define BGFX_RESET_FULLSCREEN_SHIFT 0
  224. #define BGFX_RESET_FULLSCREEN_MASK UINT32_C(0x00000001)
  225. #define BGFX_RESET_MSAA_X2 UINT32_C(0x00000010)
  226. #define BGFX_RESET_MSAA_X4 UINT32_C(0x00000020)
  227. #define BGFX_RESET_MSAA_X8 UINT32_C(0x00000030)
  228. #define BGFX_RESET_MSAA_X16 UINT32_C(0x00000040)
  229. #define BGFX_RESET_MSAA_SHIFT 4
  230. #define BGFX_RESET_MSAA_MASK UINT32_C(0x00000070)
  231. #define BGFX_RESET_VSYNC UINT32_C(0x00000080)
  232. #define BGFX_RESET_CAPTURE UINT32_C(0x00000100)
  233. #define BGFX_RESET_HMD UINT32_C(0x00000200)
  234. #define BGFX_RESET_HMD_DEBUG UINT32_C(0x00000400)
  235. #define BGFX_RESET_HMD_RECENTER UINT32_C(0x00000800)
  236. ///
  237. #define BGFX_CAPS_TEXTURE_COMPARE_LEQUAL UINT64_C(0x0000000000000001)
  238. #define BGFX_CAPS_TEXTURE_COMPARE_ALL UINT64_C(0x0000000000000003)
  239. #define BGFX_CAPS_TEXTURE_3D UINT64_C(0x0000000000000004)
  240. #define BGFX_CAPS_VERTEX_ATTRIB_HALF UINT64_C(0x0000000000000008)
  241. #define BGFX_CAPS_INSTANCING UINT64_C(0x0000000000000010)
  242. #define BGFX_CAPS_RENDERER_MULTITHREADED UINT64_C(0x0000000000000020)
  243. #define BGFX_CAPS_FRAGMENT_DEPTH UINT64_C(0x0000000000000040)
  244. #define BGFX_CAPS_BLEND_INDEPENDENT UINT64_C(0x0000000000000080)
  245. #define BGFX_CAPS_COMPUTE UINT64_C(0x0000000000000100)
  246. #define BGFX_CAPS_FRAGMENT_ORDERING UINT64_C(0x0000000000000200)
  247. #define BGFX_CAPS_SWAP_CHAIN UINT64_C(0x0000000000000400)
  248. #define BGFX_CAPS_HMD UINT64_C(0x0000000000000800)
  249. ///
  250. #define BGFX_VIEW_NONE UINT8_C(0x00)
  251. #define BGFX_VIEW_STEREO UINT8_C(0x01)
  252. #endif // BGFX_DEFINES_H_HEADER_GUARD