config.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. /*
  2. * Copyright 2011-2022 Branimir Karadzic. All rights reserved.
  3. * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
  4. */
  5. #ifndef BGFX_CONFIG_H_HEADER_GUARD
  6. #define BGFX_CONFIG_H_HEADER_GUARD
  7. #include <bx/bx.h> // bx::isPowerOf2
  8. // # Configuration options for bgfx.
  9. //
  10. // Any of `BGFX_CONFIG_*` options that's inside `#ifndef` block can be configured externally
  11. // via compiler options.
  12. //
  13. // When selecting rendering backends select all backends you want to include in the build.
  14. #ifndef BX_CONFIG_DEBUG
  15. # error "BX_CONFIG_DEBUG must be defined in build script!"
  16. #endif // BX_CONFIG_DEBUG
  17. #if !defined(BGFX_CONFIG_RENDERER_AGC) \
  18. && !defined(BGFX_CONFIG_RENDERER_DIRECT3D9) \
  19. && !defined(BGFX_CONFIG_RENDERER_DIRECT3D11) \
  20. && !defined(BGFX_CONFIG_RENDERER_DIRECT3D12) \
  21. && !defined(BGFX_CONFIG_RENDERER_GNM) \
  22. && !defined(BGFX_CONFIG_RENDERER_METAL) \
  23. && !defined(BGFX_CONFIG_RENDERER_NVN) \
  24. && !defined(BGFX_CONFIG_RENDERER_OPENGL) \
  25. && !defined(BGFX_CONFIG_RENDERER_OPENGLES) \
  26. && !defined(BGFX_CONFIG_RENDERER_VULKAN) \
  27. && !defined(BGFX_CONFIG_RENDERER_WEBGPU)
  28. # ifndef BGFX_CONFIG_RENDERER_AGC
  29. # define BGFX_CONFIG_RENDERER_AGC (0 \
  30. || BX_PLATFORM_PS5 \
  31. ? 1 : 0)
  32. # endif // BGFX_CONFIG_RENDERER_AGC
  33. # ifndef BGFX_CONFIG_RENDERER_DIRECT3D9
  34. # define BGFX_CONFIG_RENDERER_DIRECT3D9 (0 \
  35. || BX_PLATFORM_WINDOWS \
  36. ? 1 : 0)
  37. # endif // BGFX_CONFIG_RENDERER_DIRECT3D9
  38. # ifndef BGFX_CONFIG_RENDERER_DIRECT3D11
  39. # define BGFX_CONFIG_RENDERER_DIRECT3D11 (0 \
  40. || BX_PLATFORM_WINDOWS \
  41. || BX_PLATFORM_WINRT \
  42. || BX_PLATFORM_XBOXONE \
  43. ? 1 : 0)
  44. # endif // BGFX_CONFIG_RENDERER_DIRECT3D11
  45. # ifndef BGFX_CONFIG_RENDERER_DIRECT3D12
  46. # define BGFX_CONFIG_RENDERER_DIRECT3D12 (0 \
  47. || BX_PLATFORM_WINDOWS \
  48. || BX_PLATFORM_WINRT \
  49. || BX_PLATFORM_XBOXONE \
  50. ? 1 : 0)
  51. # endif // BGFX_CONFIG_RENDERER_DIRECT3D12
  52. # ifndef BGFX_CONFIG_RENDERER_GNM
  53. # define BGFX_CONFIG_RENDERER_GNM (0 \
  54. || BX_PLATFORM_PS4 \
  55. ? 1 : 0)
  56. # endif // BGFX_CONFIG_RENDERER_GNM
  57. # ifndef BGFX_CONFIG_RENDERER_METAL
  58. # define BGFX_CONFIG_RENDERER_METAL (0 \
  59. || (BX_PLATFORM_IOS && BX_CPU_ARM) \
  60. || (BX_PLATFORM_IOS && BX_CPU_X86) \
  61. || (BX_PLATFORM_OSX >= 101100) \
  62. ? 1 : 0)
  63. # endif // BGFX_CONFIG_RENDERER_METAL
  64. # ifndef BGFX_CONFIG_RENDERER_NVN
  65. # define BGFX_CONFIG_RENDERER_NVN (0 \
  66. || BX_PLATFORM_NX \
  67. ? 1 : 0)
  68. # endif // BGFX_CONFIG_RENDERER_NVN
  69. # ifndef BGFX_CONFIG_RENDERER_OPENGL_MIN_VERSION
  70. # define BGFX_CONFIG_RENDERER_OPENGL_MIN_VERSION 1
  71. # endif // BGFX_CONFIG_RENDERER_OPENGL_MIN_VERSION
  72. # ifndef BGFX_CONFIG_RENDERER_OPENGL
  73. # define BGFX_CONFIG_RENDERER_OPENGL (0 \
  74. || BX_PLATFORM_BSD \
  75. || BX_PLATFORM_LINUX \
  76. || BX_PLATFORM_OSX \
  77. || BX_PLATFORM_WINDOWS \
  78. ? BGFX_CONFIG_RENDERER_OPENGL_MIN_VERSION : 0)
  79. # endif // BGFX_CONFIG_RENDERER_OPENGL
  80. # ifndef BGFX_CONFIG_RENDERER_OPENGLES_MIN_VERSION
  81. # define BGFX_CONFIG_RENDERER_OPENGLES_MIN_VERSION (0 \
  82. || BX_PLATFORM_ANDROID \
  83. ? 30 : 1)
  84. # endif // BGFX_CONFIG_RENDERER_OPENGLES_MIN_VERSION
  85. # ifndef BGFX_CONFIG_RENDERER_OPENGLES
  86. # define BGFX_CONFIG_RENDERER_OPENGLES (0 \
  87. || BX_PLATFORM_ANDROID \
  88. || BX_PLATFORM_EMSCRIPTEN \
  89. || BX_PLATFORM_IOS \
  90. || BX_PLATFORM_RPI \
  91. || BX_PLATFORM_NX \
  92. ? BGFX_CONFIG_RENDERER_OPENGLES_MIN_VERSION : 0)
  93. # endif // BGFX_CONFIG_RENDERER_OPENGLES
  94. # ifndef BGFX_CONFIG_RENDERER_VULKAN
  95. # define BGFX_CONFIG_RENDERER_VULKAN (0 \
  96. || BX_PLATFORM_ANDROID \
  97. || BX_PLATFORM_LINUX \
  98. || BX_PLATFORM_WINDOWS \
  99. || BX_PLATFORM_NX \
  100. || BX_PLATFORM_OSX \
  101. ? 1 : 0)
  102. # endif // BGFX_CONFIG_RENDERER_VULKAN
  103. # ifndef BGFX_CONFIG_RENDERER_WEBGPU
  104. # define BGFX_CONFIG_RENDERER_WEBGPU 0
  105. # endif // BGFX_CONFIG_RENDERER_WEBGPU
  106. #else
  107. # ifndef BGFX_CONFIG_RENDERER_AGC
  108. # define BGFX_CONFIG_RENDERER_AGC 0
  109. # endif // BGFX_CONFIG_RENDERER_AGC
  110. # ifndef BGFX_CONFIG_RENDERER_DIRECT3D9
  111. # define BGFX_CONFIG_RENDERER_DIRECT3D9 0
  112. # endif // BGFX_CONFIG_RENDERER_DIRECT3D9
  113. # ifndef BGFX_CONFIG_RENDERER_DIRECT3D11
  114. # define BGFX_CONFIG_RENDERER_DIRECT3D11 0
  115. # endif // BGFX_CONFIG_RENDERER_DIRECT3D11
  116. # ifndef BGFX_CONFIG_RENDERER_DIRECT3D12
  117. # define BGFX_CONFIG_RENDERER_DIRECT3D12 0
  118. # endif // BGFX_CONFIG_RENDERER_DIRECT3D12
  119. # ifndef BGFX_CONFIG_RENDERER_GNM
  120. # define BGFX_CONFIG_RENDERER_GNM 0
  121. # endif // BGFX_CONFIG_RENDERER_GNM
  122. # ifndef BGFX_CONFIG_RENDERER_METAL
  123. # define BGFX_CONFIG_RENDERER_METAL 0
  124. # endif // BGFX_CONFIG_RENDERER_METAL
  125. # ifndef BGFX_CONFIG_RENDERER_NVN
  126. # define BGFX_CONFIG_RENDERER_NVN 0
  127. # endif // BGFX_CONFIG_RENDERER_NVN
  128. # ifndef BGFX_CONFIG_RENDERER_OPENGL
  129. # define BGFX_CONFIG_RENDERER_OPENGL 0
  130. # endif // BGFX_CONFIG_RENDERER_OPENGL
  131. # ifndef BGFX_CONFIG_RENDERER_OPENGLES
  132. # define BGFX_CONFIG_RENDERER_OPENGLES 0
  133. # endif // BGFX_CONFIG_RENDERER_OPENGLES
  134. # ifndef BGFX_CONFIG_RENDERER_VULKAN
  135. # define BGFX_CONFIG_RENDERER_VULKAN 0
  136. # endif // BGFX_CONFIG_RENDERER_VULKAN
  137. # ifndef BGFX_CONFIG_RENDERER_WEBGPU
  138. # define BGFX_CONFIG_RENDERER_WEBGPU 0
  139. # endif // BGFX_CONFIG_RENDERER_VULKAN
  140. #endif // !defined...
  141. #if BGFX_CONFIG_RENDERER_OPENGL && BGFX_CONFIG_RENDERER_OPENGL < 21
  142. # undef BGFX_CONFIG_RENDERER_OPENGL
  143. # define BGFX_CONFIG_RENDERER_OPENGL 21
  144. #endif // BGFX_CONFIG_RENDERER_OPENGL && BGFX_CONFIG_RENDERER_OPENGL < 21
  145. #if BGFX_CONFIG_RENDERER_OPENGLES && BGFX_CONFIG_RENDERER_OPENGLES < 20
  146. # undef BGFX_CONFIG_RENDERER_OPENGLES
  147. # define BGFX_CONFIG_RENDERER_OPENGLES 20
  148. #endif // BGFX_CONFIG_RENDERER_OPENGLES && BGFX_CONFIG_RENDERER_OPENGLES < 20
  149. #if BGFX_CONFIG_RENDERER_OPENGL && BGFX_CONFIG_RENDERER_OPENGLES
  150. # error "Can't define both BGFX_CONFIG_RENDERER_OPENGL and BGFX_CONFIG_RENDERER_OPENGLES"
  151. #endif // BGFX_CONFIG_RENDERER_OPENGL && BGFX_CONFIG_RENDERER_OPENGLES
  152. /// Enable use of extensions.
  153. #ifndef BGFX_CONFIG_RENDERER_USE_EXTENSIONS
  154. # define BGFX_CONFIG_RENDERER_USE_EXTENSIONS 1
  155. #endif // BGFX_CONFIG_RENDERER_USE_EXTENSIONS
  156. /// Enable use of tinystl.
  157. #ifndef BGFX_CONFIG_USE_TINYSTL
  158. # define BGFX_CONFIG_USE_TINYSTL 1
  159. #endif // BGFX_CONFIG_USE_TINYSTL
  160. /// Enable nVidia PerfHUD integration.
  161. #ifndef BGFX_CONFIG_DEBUG_PERFHUD
  162. # define BGFX_CONFIG_DEBUG_PERFHUD 0
  163. #endif // BGFX_CONFIG_DEBUG_NVPERFHUD
  164. /// Enable annotation for graphics debuggers.
  165. #ifndef BGFX_CONFIG_DEBUG_ANNOTATION
  166. # define BGFX_CONFIG_DEBUG_ANNOTATION BGFX_CONFIG_DEBUG
  167. #endif // BGFX_CONFIG_DEBUG_ANNOTATION
  168. /// Enable DX11 object names.
  169. #ifndef BGFX_CONFIG_DEBUG_OBJECT_NAME
  170. # define BGFX_CONFIG_DEBUG_OBJECT_NAME BGFX_CONFIG_DEBUG_ANNOTATION
  171. #endif // BGFX_CONFIG_DEBUG_OBJECT_NAME
  172. /// Enable uniform debug checks.
  173. #ifndef BGFX_CONFIG_DEBUG_UNIFORM
  174. # define BGFX_CONFIG_DEBUG_UNIFORM BGFX_CONFIG_DEBUG
  175. #endif // BGFX_CONFIG_DEBUG_UNIFORM
  176. /// Enable occlusion debug checks.
  177. #ifndef BGFX_CONFIG_DEBUG_OCCLUSION
  178. # define BGFX_CONFIG_DEBUG_OCCLUSION BGFX_CONFIG_DEBUG
  179. #endif // BGFX_CONFIG_DEBUG_OCCLUSION
  180. #ifndef BGFX_CONFIG_MULTITHREADED
  181. # define BGFX_CONFIG_MULTITHREADED ( (0 == BX_PLATFORM_EMSCRIPTEN) ? 1 : 0)
  182. #endif // BGFX_CONFIG_MULTITHREADED
  183. #ifndef BGFX_CONFIG_MAX_DRAW_CALLS
  184. # define BGFX_CONFIG_MAX_DRAW_CALLS ( (64<<10)-1)
  185. #endif // BGFX_CONFIG_MAX_DRAW_CALLS
  186. #ifndef BGFX_CONFIG_MAX_BLIT_ITEMS
  187. # define BGFX_CONFIG_MAX_BLIT_ITEMS (1<<10)
  188. #endif // BGFX_CONFIG_MAX_BLIT_ITEMS
  189. #ifndef BGFX_CONFIG_MAX_MATRIX_CACHE
  190. # define BGFX_CONFIG_MAX_MATRIX_CACHE (BGFX_CONFIG_MAX_DRAW_CALLS+1)
  191. #endif // BGFX_CONFIG_MAX_MATRIX_CACHE
  192. #ifndef BGFX_CONFIG_MAX_RECT_CACHE
  193. # define BGFX_CONFIG_MAX_RECT_CACHE (4<<10)
  194. #endif // BGFX_CONFIG_MAX_RECT_CACHE
  195. #ifndef BGFX_CONFIG_SORT_KEY_NUM_BITS_DEPTH
  196. # define BGFX_CONFIG_SORT_KEY_NUM_BITS_DEPTH 32
  197. #endif // BGFX_CONFIG_SORT_KEY_NUM_BITS_DEPTH
  198. #ifndef BGFX_CONFIG_SORT_KEY_NUM_BITS_SEQ
  199. # define BGFX_CONFIG_SORT_KEY_NUM_BITS_SEQ 20
  200. #endif // BGFX_CONFIG_SORT_KEY_NUM_BITS_SEQ
  201. #ifndef BGFX_CONFIG_SORT_KEY_NUM_BITS_PROGRAM
  202. # define BGFX_CONFIG_SORT_KEY_NUM_BITS_PROGRAM 9
  203. #endif // BGFX_CONFIG_SORT_KEY_NUM_BITS_PROGRAM
  204. // Cannot be configured via compiler options.
  205. #define BGFX_CONFIG_MAX_PROGRAMS (1<<BGFX_CONFIG_SORT_KEY_NUM_BITS_PROGRAM)
  206. BX_STATIC_ASSERT(bx::isPowerOf2(BGFX_CONFIG_MAX_PROGRAMS), "BGFX_CONFIG_MAX_PROGRAMS must be power of 2.");
  207. #ifndef BGFX_CONFIG_MAX_VIEWS
  208. # define BGFX_CONFIG_MAX_VIEWS 256
  209. #endif // BGFX_CONFIG_MAX_VIEWS
  210. BX_STATIC_ASSERT(bx::isPowerOf2(BGFX_CONFIG_MAX_VIEWS), "BGFX_CONFIG_MAX_VIEWS must be power of 2.");
  211. #define BGFX_CONFIG_MAX_VIEW_NAME_RESERVED 6
  212. #ifndef BGFX_CONFIG_MAX_VIEW_NAME
  213. # define BGFX_CONFIG_MAX_VIEW_NAME 256
  214. #endif // BGFX_CONFIG_MAX_VIEW_NAME
  215. #ifndef BGFX_CONFIG_MAX_VERTEX_LAYOUTS
  216. # define BGFX_CONFIG_MAX_VERTEX_LAYOUTS 64
  217. #endif // BGFX_CONFIG_MAX_VERTEX_LAYOUTS
  218. #ifndef BGFX_CONFIG_MAX_INDEX_BUFFERS
  219. # define BGFX_CONFIG_MAX_INDEX_BUFFERS (4<<10)
  220. #endif // BGFX_CONFIG_MAX_INDEX_BUFFERS
  221. #ifndef BGFX_CONFIG_MAX_VERTEX_BUFFERS
  222. # define BGFX_CONFIG_MAX_VERTEX_BUFFERS (4<<10)
  223. #endif // BGFX_CONFIG_MAX_VERTEX_BUFFERS
  224. #ifndef BGFX_CONFIG_MAX_VERTEX_STREAMS
  225. # define BGFX_CONFIG_MAX_VERTEX_STREAMS 4
  226. #endif // BGFX_CONFIG_MAX_VERTEX_STREAMS
  227. #ifndef BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS
  228. # define BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS (4<<10)
  229. #endif // BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS
  230. #ifndef BGFX_CONFIG_MAX_DYNAMIC_VERTEX_BUFFERS
  231. # define BGFX_CONFIG_MAX_DYNAMIC_VERTEX_BUFFERS (4<<10)
  232. #endif // BGFX_CONFIG_MAX_DYNAMIC_VERTEX_BUFFERS
  233. #ifndef BGFX_CONFIG_DYNAMIC_INDEX_BUFFER_SIZE
  234. # define BGFX_CONFIG_DYNAMIC_INDEX_BUFFER_SIZE (1<<20)
  235. #endif // BGFX_CONFIG_DYNAMIC_INDEX_BUFFER_SIZE
  236. #ifndef BGFX_CONFIG_DYNAMIC_VERTEX_BUFFER_SIZE
  237. # define BGFX_CONFIG_DYNAMIC_VERTEX_BUFFER_SIZE (3<<20)
  238. #endif // BGFX_CONFIG_DYNAMIC_VERTEX_BUFFER_SIZE
  239. #ifndef BGFX_CONFIG_MAX_SHADERS
  240. # define BGFX_CONFIG_MAX_SHADERS 512
  241. #endif // BGFX_CONFIG_MAX_FRAGMENT_SHADERS
  242. #ifndef BGFX_CONFIG_MAX_TEXTURES
  243. # define BGFX_CONFIG_MAX_TEXTURES (4<<10)
  244. #endif // BGFX_CONFIG_MAX_TEXTURES
  245. #ifndef BGFX_CONFIG_MAX_TEXTURE_SAMPLERS
  246. # define BGFX_CONFIG_MAX_TEXTURE_SAMPLERS 16
  247. #endif // BGFX_CONFIG_MAX_TEXTURE_SAMPLERS
  248. #ifndef BGFX_CONFIG_MAX_FRAME_BUFFERS
  249. # define BGFX_CONFIG_MAX_FRAME_BUFFERS 128
  250. #endif // BGFX_CONFIG_MAX_FRAME_BUFFERS
  251. #ifndef BGFX_CONFIG_MAX_FRAME_BUFFER_ATTACHMENTS
  252. # define BGFX_CONFIG_MAX_FRAME_BUFFER_ATTACHMENTS 8
  253. #endif // BGFX_CONFIG_MAX_FRAME_BUFFER_ATTACHMENTS
  254. #ifndef BGFX_CONFIG_MAX_UNIFORMS
  255. # define BGFX_CONFIG_MAX_UNIFORMS 512
  256. #endif // BGFX_CONFIG_MAX_UNIFORMS
  257. #ifndef BGFX_CONFIG_MAX_OCCLUSION_QUERIES
  258. # define BGFX_CONFIG_MAX_OCCLUSION_QUERIES 256
  259. #endif // BGFX_CONFIG_MAX_OCCLUSION_QUERIES
  260. #ifndef BGFX_CONFIG_MIN_RESOURCE_COMMAND_BUFFER_SIZE
  261. # define BGFX_CONFIG_MIN_RESOURCE_COMMAND_BUFFER_SIZE (64<<10)
  262. #endif // BGFX_CONFIG_MIN_RESOURCE_COMMAND_BUFFER_SIZE
  263. #ifndef BGFX_CONFIG_TRANSIENT_VERTEX_BUFFER_SIZE
  264. # define BGFX_CONFIG_TRANSIENT_VERTEX_BUFFER_SIZE (6<<20)
  265. #endif // BGFX_CONFIG_TRANSIENT_VERTEX_BUFFER_SIZE
  266. #ifndef BGFX_CONFIG_TRANSIENT_INDEX_BUFFER_SIZE
  267. # define BGFX_CONFIG_TRANSIENT_INDEX_BUFFER_SIZE (2<<20)
  268. #endif // BGFX_CONFIG_TRANSIENT_INDEX_BUFFER_SIZE
  269. #ifndef BGFX_CONFIG_MAX_INSTANCE_DATA_COUNT
  270. # define BGFX_CONFIG_MAX_INSTANCE_DATA_COUNT 5
  271. #endif // BGFX_CONFIG_MAX_INSTANCE_DATA_COUNT
  272. #ifndef BGFX_CONFIG_MAX_COLOR_PALETTE
  273. # define BGFX_CONFIG_MAX_COLOR_PALETTE 16
  274. #endif // BGFX_CONFIG_MAX_COLOR_PALETTE
  275. #define BGFX_CONFIG_DRAW_INDIRECT_STRIDE 32
  276. #ifndef BGFX_CONFIG_PROFILER
  277. # define BGFX_CONFIG_PROFILER 0
  278. #endif // BGFX_CONFIG_PROFILER
  279. #ifndef BGFX_CONFIG_RENDERDOC_LOG_FILEPATH
  280. # define BGFX_CONFIG_RENDERDOC_LOG_FILEPATH "temp/bgfx"
  281. #endif // BGFX_CONFIG_RENDERDOC_LOG_FILEPATH
  282. #ifndef BGFX_CONFIG_RENDERDOC_CAPTURE_KEYS
  283. # define BGFX_CONFIG_RENDERDOC_CAPTURE_KEYS { eRENDERDOC_Key_F11 }
  284. #endif // BGFX_CONFIG_RENDERDOC_CAPTURE_KEYS
  285. #ifndef BGFX_CONFIG_API_SEMAPHORE_TIMEOUT
  286. # define BGFX_CONFIG_API_SEMAPHORE_TIMEOUT (5000)
  287. #endif // BGFX_CONFIG_API_SEMAPHORE_TIMEOUT
  288. #ifndef BGFX_CONFIG_MIP_LOD_BIAS
  289. # define BGFX_CONFIG_MIP_LOD_BIAS 0
  290. #endif // BGFX_CONFIG_MIP_LOD_BIAS
  291. #ifndef BGFX_CONFIG_DEFAULT_MAX_ENCODERS
  292. # define BGFX_CONFIG_DEFAULT_MAX_ENCODERS ( (0 != BGFX_CONFIG_MULTITHREADED) ? 8 : 1)
  293. #endif // BGFX_CONFIG_DEFAULT_MAX_ENCODERS
  294. #ifndef BGFX_CONFIG_MAX_BACK_BUFFERS
  295. # define BGFX_CONFIG_MAX_BACK_BUFFERS 4
  296. #endif // BGFX_CONFIG_MAX_BACK_BUFFERS
  297. #ifndef BGFX_CONFIG_MAX_FRAME_LATENCY
  298. # define BGFX_CONFIG_MAX_FRAME_LATENCY 3
  299. #endif // BGFX_CONFIG_MAX_FRAME_LATENCY
  300. #ifndef BGFX_CONFIG_PREFER_DISCRETE_GPU
  301. // On laptops with integrated and discrete GPU, prefer selection of discrete GPU.
  302. // nVidia and AMD, on Windows only.
  303. # define BGFX_CONFIG_PREFER_DISCRETE_GPU BX_PLATFORM_WINDOWS
  304. #endif // BGFX_CONFIG_PREFER_DISCRETE_GPU
  305. #ifndef BGFX_CONFIG_MAX_SCREENSHOTS
  306. # define BGFX_CONFIG_MAX_SCREENSHOTS 4
  307. #endif // BGFX_CONFIG_MAX_SCREENSHOTS
  308. #ifndef BGFX_CONFIG_ENCODER_API_ONLY
  309. # define BGFX_CONFIG_ENCODER_API_ONLY 0
  310. #endif // BGFX_CONFIG_ENCODER_API_ONLY
  311. #endif // BGFX_CONFIG_H_HEADER_GUARD