BsRenderAPICapabilities.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsGpuProgram.h"
  6. #include <cstdint>
  7. #define CAPS_CATEGORY_SIZE INT64_C(8)
  8. #define BS_CAPS_BITSHIFT (INT64_C(64) - CAPS_CATEGORY_SIZE)
  9. #define CAPS_CATEGORY_MASK (((INT64_C(1) << CAPS_CATEGORY_SIZE) - INT64_C(1)) << BS_CAPS_BITSHIFT)
  10. #define BS_CAPS_VALUE(cat, val) ((cat << BS_CAPS_BITSHIFT) | (INT64_C(1) << val))
  11. #define MAX_BOUND_VERTEX_BUFFERS 32
  12. namespace BansheeEngine
  13. {
  14. /** @addtogroup RenderAPI-Internal
  15. * @{
  16. */
  17. /** Categories of render API capabilities. */
  18. enum CapabilitiesCategory : UINT64
  19. {
  20. CAPS_CATEGORY_COMMON = 0,
  21. CAPS_CATEGORY_D3D9 = 1,
  22. CAPS_CATEGORY_GL = 2,
  23. CAPS_CATEGORY_D3D11 = 3,
  24. CAPS_CATEGORY_COUNT = 32 /**< Maximum number of categories. */
  25. };
  26. /** Enum describing the different hardware capabilities we can check for. */
  27. enum Capabilities : UINT64
  28. {
  29. RSC_AUTOMIPMAP = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 0), /**< Supports generating mipmaps in hardware. */
  30. RSC_ANISOTROPY = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 1), /**< Supports anisotropic texture filtering. */
  31. RSC_CUBEMAPPING = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 2), /**< Supports cube mapping. */
  32. RSC_TWO_SIDED_STENCIL = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 3), /**< Supports separate stencil updates for both front and back faces. */
  33. RSC_STENCIL_WRAP = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 4), /**< Supports wrapping the stencil value at the range extremes. */
  34. RSC_HWOCCLUSION = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 5), /**< Supports hardware occlusion queries. */
  35. RSC_USER_CLIP_PLANES = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 6), /**< Supports user clipping planes. */
  36. RSC_VERTEX_FORMAT_UBYTE4 = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 7), /**< Supports the VET_UBYTE4 vertex element type. */
  37. RSC_INFINITE_FAR_PLANE = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 8), /**< Supports infinite far plane projection. */
  38. RSC_HWRENDER_TO_TEXTURE = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 9), /**< Supports hardware render-to-texture. */
  39. RSC_TEXTURE_FLOAT = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 10), /**< Supports float textures and render targets. */
  40. RSC_NON_POWER_OF_2_TEXTURES = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 11), /**< Supports non-power of two textures. */
  41. RSC_TEXTURE_3D = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 12), /**< Supports 3d (volume) textures. */
  42. RSC_POINT_SPRITES = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 13), /**< Supports basic point sprite rendering. */
  43. RSC_POINT_EXTENDED_PARAMETERS = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 14), /**< Supports extra point parameters (minsize, maxsize, attenuation). */
  44. RSC_VERTEX_TEXTURE_FETCH = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 15), /**< Supports vertex texture fetch. */
  45. RSC_MIPMAP_LOD_BIAS = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 16), /**< Supports mipmap LOD biasing. */
  46. RSC_GEOMETRY_PROGRAM = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 17), /**< Supports hardware geometry programs. */
  47. RSC_TEXTURE_COMPRESSION = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 18), /**< Supports compressed textures. */
  48. RSC_TEXTURE_COMPRESSION_DXT = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 19), /**< Supports compressed textures in the DXT/ST3C formats. */
  49. RSC_TEXTURE_COMPRESSION_VTC = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 20), /**< Supports compressed textures in the VTC format. */
  50. RSC_TEXTURE_COMPRESSION_PVRTC = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 21), /**< Supports compressed textures in the PVRTC format. */
  51. RSC_MRT_DIFFERENT_BIT_DEPTHS = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 22), /**< Supports multiple render targets with different bit depths. */
  52. RSC_ALPHA_TO_COVERAGE = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 23), /**< Supports Alpha to Coverage. */
  53. RSC_ADVANCED_BLEND_OPERATIONS = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 24), /**< Supports blend operations like subtract, min, max. */
  54. RSC_SHADER_SUBROUTINE = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 25), /**< Supports dynamic shader linking. */
  55. RSC_HWOCCLUSION_ASYNCHRONOUS = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 26), /**< Support for async occlusion queries. */
  56. RSC_HWRENDER_TO_VERTEX_BUFFER = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 27), /**< Supports rendering to vertex buffers. */
  57. RSC_TESSELLATION_PROGRAM = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 28), /**< Supports hardware tessellation programs. */
  58. RSC_COMPUTE_PROGRAM = BS_CAPS_VALUE(CAPS_CATEGORY_COMMON, 29), /**< Supports hardware compute programs. */
  59. // ***** DirectX 9 specific caps *****
  60. RSC_PERSTAGECONSTANT = BS_CAPS_VALUE(CAPS_CATEGORY_D3D9, 0), /**< Are per stage constants supported. */
  61. // ***** GL Specific caps *****
  62. RSC_FBO = BS_CAPS_VALUE(CAPS_CATEGORY_GL, 0), /**< Support for Frame Buffer Objects. */
  63. RSC_PBUFFER = BS_CAPS_VALUE(CAPS_CATEGORY_GL, 1), /**< Support for PBuffers. */
  64. };
  65. /** Holds data about render system driver version. */
  66. struct BS_CORE_EXPORT DriverVersion
  67. {
  68. int major;
  69. int minor;
  70. int release;
  71. int build;
  72. DriverVersion()
  73. {
  74. major = minor = release = build = 0;
  75. }
  76. /** Returns the driver version as a single string. */
  77. String toString() const
  78. {
  79. StringStream str;
  80. str << major << "." << minor << "." << release << "." << build;
  81. return str.str();
  82. }
  83. /** Parses a string in the major.minor.release.build format and stores the version numbers. */
  84. void fromString(const String& versionString)
  85. {
  86. Vector<BansheeEngine::String> tokens = StringUtil::split(versionString, ".");
  87. if(!tokens.empty())
  88. {
  89. major = parseINT32(tokens[0]);
  90. if (tokens.size() > 1)
  91. minor = parseINT32(tokens[1]);
  92. if (tokens.size() > 2)
  93. release = parseINT32(tokens[2]);
  94. if (tokens.size() > 3)
  95. build = parseINT32(tokens[3]);
  96. }
  97. }
  98. };
  99. /** Types of GPU vendors. */
  100. enum GPUVendor
  101. {
  102. GPU_UNKNOWN = 0,
  103. GPU_NVIDIA = 1,
  104. GPU_AMD = 2,
  105. GPU_INTEL = 3,
  106. GPU_VENDOR_COUNT = 4
  107. };
  108. /**
  109. * Holds information about render hardware and driver capabilities and allows you to easily set and query those
  110. * capabilities.
  111. */
  112. class BS_CORE_EXPORT RenderAPICapabilities
  113. {
  114. public:
  115. RenderAPICapabilities ();
  116. virtual ~RenderAPICapabilities ();
  117. /** Sets the current driver version. */
  118. void setDriverVersion(const DriverVersion& version)
  119. {
  120. mDriverVersion = version;
  121. }
  122. /** Returns current driver version. */
  123. DriverVersion getDriverVersion() const
  124. {
  125. return mDriverVersion;
  126. }
  127. /** Returns vendor of the currently used GPU. */
  128. GPUVendor getVendor() const
  129. {
  130. return mVendor;
  131. }
  132. /** Sets the GPU vendor. */
  133. void setVendor(GPUVendor v)
  134. {
  135. mVendor = v;
  136. }
  137. /** Parses a vendor string and returns an enum with the vendor if parsed succesfully. */
  138. static GPUVendor vendorFromString(const String& vendorString);
  139. /** Converts a vendor enum to a string. */
  140. static String vendorToString(GPUVendor v);
  141. /** Sets the maximum number of texture units per pipeline stage. */
  142. void setNumTextureUnits(GpuProgramType type, UINT16 num)
  143. {
  144. mNumTextureUnitsPerStage[type] = num;
  145. }
  146. /** Sets the maximum number of texture units in all pipeline stages. */
  147. void setNumCombinedTextureUnits(UINT16 num)
  148. {
  149. mNumCombinedTextureUnits = num;
  150. }
  151. /** Sets the maximum number of GPU param block buffers per pipeline stage. */
  152. void setNumGpuParamBlockBuffers(GpuProgramType type, UINT16 num)
  153. {
  154. mNumGpuParamBlocksPerStage[type] = num;
  155. }
  156. /** Sets the maximum number of GPU param block buffers in all pipeline stages. */
  157. void setNumCombinedGpuParamBlockBuffers(UINT16 num)
  158. {
  159. mNumCombinedUniformBlocks = num;
  160. }
  161. /** Sets maximum stencil buffer depth in bits. */
  162. void setStencilBufferBitDepth(UINT16 num)
  163. {
  164. mStencilBufferBitDepth = num;
  165. }
  166. /** Sets maximum number of bound vertex buffers. */
  167. void setMaxBoundVertexBuffers(UINT32 num)
  168. {
  169. mMaxBoundVertexBuffers = num;
  170. }
  171. /** Sets maximum number of simultaneously set render targets. */
  172. void setNumMultiRenderTargets(UINT16 num)
  173. {
  174. mNumMultiRenderTargets = num;
  175. }
  176. /** Returns the number of texture units supported per pipeline stage. */
  177. UINT16 getNumTextureUnits(GpuProgramType type) const
  178. {
  179. auto iterFind = mNumTextureUnitsPerStage.find(type);
  180. if(iterFind != mNumTextureUnitsPerStage.end())
  181. return iterFind->second;
  182. else
  183. return 0;
  184. }
  185. /** Returns the number of texture units supported in all pipeline stages. */
  186. UINT16 getNumCombinedTextureUnits() const
  187. {
  188. return mNumCombinedTextureUnits;
  189. }
  190. /** Returns the maximum number of bound GPU program param block buffers per pipeline stage. */
  191. UINT16 getNumGpuParamBlockBuffers(GpuProgramType type) const
  192. {
  193. auto iterFind = mNumGpuParamBlocksPerStage.find(type);
  194. if(iterFind != mNumGpuParamBlocksPerStage.end())
  195. return iterFind->second;
  196. else
  197. return 0;
  198. }
  199. /** Returns the maximum number of bound GPU program param block buffers in all pipeline stages. */
  200. UINT16 getNumCombinedGpuParamBlockBuffers() const
  201. {
  202. return mNumCombinedUniformBlocks;
  203. }
  204. /** Returns the maximum number of bits available for the stencil buffer. */
  205. UINT16 getStencilBufferBitDepth() const
  206. {
  207. return mStencilBufferBitDepth;
  208. }
  209. /** Returns the maximum number of vertex buffers that can be bound at once. */
  210. UINT32 getMaxBoundVertexBuffers() const
  211. {
  212. return mMaxBoundVertexBuffers;
  213. }
  214. /** Returns the maximum number of render targets we can render to simultaneously. */
  215. UINT16 getNumMultiRenderTargets() const
  216. {
  217. return mNumMultiRenderTargets;
  218. }
  219. /** Sets a capability flag indicating this capability is supported. */
  220. void setCapability(const Capabilities c)
  221. {
  222. UINT64 index = (CAPS_CATEGORY_MASK & c) >> BS_CAPS_BITSHIFT;
  223. mCapabilities[index] |= (c & ~CAPS_CATEGORY_MASK);
  224. }
  225. /** Remove a capability flag indicating this capability is not supported (default). */
  226. void unsetCapability(const Capabilities c)
  227. {
  228. UINT64 index = (CAPS_CATEGORY_MASK & c) >> BS_CAPS_BITSHIFT;
  229. mCapabilities[index] &= (~c | CAPS_CATEGORY_MASK);
  230. }
  231. /** Checks is the specified capability supported. */
  232. bool hasCapability(const Capabilities c) const
  233. {
  234. UINT64 index = (CAPS_CATEGORY_MASK & c) >> BS_CAPS_BITSHIFT;
  235. return (mCapabilities[index] & (c & ~CAPS_CATEGORY_MASK)) != 0;
  236. }
  237. /** Adds a shader profile to the list of render-system specific supported profiles. */
  238. void addShaderProfile(const String& profile)
  239. {
  240. mSupportedShaderProfiles.insert(profile);
  241. }
  242. /** Adds a mapping between GPU program profile enum and render-system specific profile name. */
  243. void addGpuProgramProfile(GpuProgramProfile gpuProgProfile, const String& rsSpecificProfile)
  244. {
  245. mGenericToSpecificShaderProfileMap[gpuProgProfile] = rsSpecificProfile;
  246. }
  247. /** Returns true if the provided profile is supported. */
  248. bool isShaderProfileSupported(const String& profile) const
  249. {
  250. return (mSupportedShaderProfiles.end() != mSupportedShaderProfiles.find(profile));
  251. }
  252. /** Returns a set of all supported shader profiles. */
  253. const Set<String>& getSupportedShaderProfiles() const
  254. {
  255. return mSupportedShaderProfiles;
  256. }
  257. /**
  258. * Converts a generic GpuProgramProfile identifier into a render-system specific one. Returns an empty string if
  259. * conversion cannot be done.
  260. */
  261. String gpuProgProfileToRSSpecificProfile(GpuProgramProfile gpuProgProfile) const
  262. {
  263. auto iterFind = mGenericToSpecificShaderProfileMap.find(gpuProgProfile);
  264. if(mGenericToSpecificShaderProfileMap.end() != iterFind)
  265. {
  266. return iterFind->second;
  267. }
  268. return "";
  269. }
  270. /** Gets the number of floating-point constants vertex programs support. */
  271. UINT16 getVertexProgramConstantFloatCount() const
  272. {
  273. return mVertexProgramConstantFloatCount;
  274. }
  275. /** Gets the number of integer constants vertex programs support. */
  276. UINT16 getVertexProgramConstantIntCount() const
  277. {
  278. return mVertexProgramConstantIntCount;
  279. }
  280. /** Gets the number of boolean constants vertex programs support. */
  281. UINT16 getVertexProgramConstantBoolCount() const
  282. {
  283. return mVertexProgramConstantBoolCount;
  284. }
  285. /** Gets the number of floating-point constants geometry programs support. */
  286. UINT16 getGeometryProgramConstantFloatCount() const
  287. {
  288. return mGeometryProgramConstantFloatCount;
  289. }
  290. /** Gets the number of integer constants geometry programs support. */
  291. UINT16 getGeometryProgramConstantIntCount() const
  292. {
  293. return mGeometryProgramConstantIntCount;
  294. }
  295. /** Gets the number of boolean constants geometry programs support. */
  296. UINT16 getGeometryProgramConstantBoolCount() const
  297. {
  298. return mGeometryProgramConstantBoolCount;
  299. }
  300. /** Gets the number of floating-point constants fragment programs support. */
  301. UINT16 getFragmentProgramConstantFloatCount() const
  302. {
  303. return mFragmentProgramConstantFloatCount;
  304. }
  305. /** Gets the number of integer constants fragment programs support. */
  306. UINT16 getFragmentProgramConstantIntCount() const
  307. {
  308. return mFragmentProgramConstantIntCount;
  309. }
  310. /** Gets the number of boolean constants fragment programs support. */
  311. UINT16 getFragmentProgramConstantBoolCount() const
  312. {
  313. return mFragmentProgramConstantBoolCount;
  314. }
  315. /** Sets the current GPU device name. */
  316. void setDeviceName(const String& name)
  317. {
  318. mDeviceName = name;
  319. }
  320. /** Gets the current GPU device name. */
  321. String getDeviceName() const
  322. {
  323. return mDeviceName;
  324. }
  325. /** Sets the number of floating-point constants vertex programs support. */
  326. void setVertexProgramConstantFloatCount(UINT16 c)
  327. {
  328. mVertexProgramConstantFloatCount = c;
  329. }
  330. /** Sets the number of integer constants vertex programs support. */
  331. void setVertexProgramConstantIntCount(UINT16 c)
  332. {
  333. mVertexProgramConstantIntCount = c;
  334. }
  335. /** Sets the number of boolean constants vertex programs support. */
  336. void setVertexProgramConstantBoolCount(UINT16 c)
  337. {
  338. mVertexProgramConstantBoolCount = c;
  339. }
  340. /** Sets the number of floating-point constants geometry programs support. */
  341. void setGeometryProgramConstantFloatCount(UINT16 c)
  342. {
  343. mGeometryProgramConstantFloatCount = c;
  344. }
  345. /** Sets the number of integer constants geometry programs support. */
  346. void setGeometryProgramConstantIntCount(UINT16 c)
  347. {
  348. mGeometryProgramConstantIntCount = c;
  349. }
  350. /** Sets the number of boolean constants geometry programs support. */
  351. void setGeometryProgramConstantBoolCount(UINT16 c)
  352. {
  353. mGeometryProgramConstantBoolCount = c;
  354. }
  355. /** Sets the number of floating-point constants fragment programs support. */
  356. void setFragmentProgramConstantFloatCount(UINT16 c)
  357. {
  358. mFragmentProgramConstantFloatCount = c;
  359. }
  360. /** Sets the number of integer constants fragment programs support. */
  361. void setFragmentProgramConstantIntCount(UINT16 c)
  362. {
  363. mFragmentProgramConstantIntCount = c;
  364. }
  365. /** Sets the number of boolean constants fragment programs support. */
  366. void setFragmentProgramConstantBoolCount(UINT16 c)
  367. {
  368. mFragmentProgramConstantBoolCount = c;
  369. }
  370. /** Sets the maximum point screen size in pixels. */
  371. void setMaxPointSize(float s)
  372. {
  373. mMaxPointSize = s;
  374. }
  375. /** Gets the maximum point screen size in pixels. */
  376. float getMaxPointSize(void) const
  377. {
  378. return mMaxPointSize;
  379. }
  380. /** Sets the number of vertices a single geometry program run can emit. */
  381. void setGeometryProgramNumOutputVertices(int numOutputVertices)
  382. {
  383. mGeometryProgramNumOutputVertices = numOutputVertices;
  384. }
  385. /** Gets the number of vertices a single geometry program run can emit. */
  386. int getGeometryProgramNumOutputVertices(void) const
  387. {
  388. return mGeometryProgramNumOutputVertices;
  389. }
  390. /** Get the identifier of the render system from which these capabilities were generated. */
  391. StringID getRenderAPIName() const
  392. {
  393. return mRenderAPIName;
  394. }
  395. /** Set the identifier of the render system from which these capabilities were generated. */
  396. void setRenderAPIName(const StringID& rs)
  397. {
  398. mRenderAPIName = rs;
  399. }
  400. private:
  401. /** Initializes vendor enum -> vendor name mappings. */
  402. static void initVendorStrings();
  403. private:
  404. static Vector<String> msGPUVendorStrings;
  405. DriverVersion mDriverVersion;
  406. GPUVendor mVendor = GPU_UNKNOWN;
  407. // The number of texture units available per stage
  408. Map<GpuProgramType, UINT16> mNumTextureUnitsPerStage;
  409. // Total number of texture units available
  410. UINT16 mNumCombinedTextureUnits = 0;
  411. // The number of uniform blocks available per stage
  412. Map<GpuProgramType, UINT16> mNumGpuParamBlocksPerStage;
  413. // Total number of uniform blocks available
  414. UINT16 mNumCombinedUniformBlocks = 0;
  415. // The stencil buffer bit depth
  416. UINT16 mStencilBufferBitDepth = 0;
  417. // Maximum number of vertex buffers we can bind at once
  418. UINT32 mMaxBoundVertexBuffers = 0;
  419. // Stores the capabilities flags.
  420. UINT32 mCapabilities[CAPS_CATEGORY_COUNT];
  421. // The name of the device as reported by the render system
  422. String mDeviceName;
  423. // The identifier associated with the render API for which these capabilities are valid
  424. StringID mRenderAPIName;
  425. // The number of floating-point constants vertex programs support
  426. UINT16 mVertexProgramConstantFloatCount = 0;
  427. // The number of integer constants vertex programs support
  428. UINT16 mVertexProgramConstantIntCount = 0;
  429. // The number of boolean constants vertex programs support
  430. UINT16 mVertexProgramConstantBoolCount = 0;
  431. // The number of floating-point constants geometry programs support
  432. UINT16 mGeometryProgramConstantFloatCount = 0;
  433. // The number of integer constants vertex geometry support
  434. UINT16 mGeometryProgramConstantIntCount = 0;
  435. // The number of boolean constants vertex geometry support
  436. UINT16 mGeometryProgramConstantBoolCount = 0;
  437. // The number of floating-point constants fragment programs support
  438. UINT16 mFragmentProgramConstantFloatCount = 0;
  439. // The number of integer constants fragment programs support
  440. UINT16 mFragmentProgramConstantIntCount = 0;
  441. // The number of boolean constants fragment programs support
  442. UINT16 mFragmentProgramConstantBoolCount = 0;
  443. // The number of simultaneous render targets supported
  444. UINT16 mNumMultiRenderTargets = 0;
  445. // The maximum point size in pixels
  446. float mMaxPointSize = 0.0f;
  447. // The number of vertices a geometry program can emit in a single run
  448. UINT32 mGeometryProgramNumOutputVertices = 0;
  449. // The list of supported shader profiles
  450. Set<String> mSupportedShaderProfiles;
  451. // Allows us to convert a generic shader profile to a render-system specific one
  452. UnorderedMap<GpuProgramProfile, String> mGenericToSpecificShaderProfileMap;
  453. };
  454. /** @} */
  455. }