| 21 | } |
| 22 | |
| 23 | struct Tr2RegisterMapAL |
| 24 | { |
| 25 | Tr2RegisterMapAL(); |
| 26 | Tr2RegisterMapAL( Tr2RenderContextEnum::ShaderType stage, const Tr2ShaderSignatureAL& signature ); |
| 27 | Tr2RegisterMapAL( const Tr2ShaderAL* shaders, size_t shaderCount ); |
| 28 | Tr2RegisterMapAL( const Tr2RenderContextEnum::ShaderType* shaders, const Tr2ShaderSignatureAL* signatures, size_t signatureCount ); |
| 29 | |
| 30 | bool operator==( const Tr2RegisterMapAL& other ) const; |
| 31 | bool operator!=( const Tr2RegisterMapAL& other ) const; |
| 32 | |
| 33 | static const uint32_t MAX_RESOURCES_IN_STAGE = 32; |
| 34 | |
| 35 | uint32_t srvCount; |
| 36 | uint32_t uavCount; |
| 37 | uint32_t samplerCount; |
| 38 | uint8_t srvs[Tr2RenderContextEnum::SHADER_TYPE_COUNT][MAX_RESOURCES_IN_STAGE]; |
| 39 | uint8_t uavs[Tr2RenderContextEnum::SHADER_TYPE_COUNT][MAX_RESOURCES_IN_STAGE]; |
| 40 | uint8_t samplers[Tr2RenderContextEnum::SHADER_TYPE_COUNT][MAX_RESOURCES_IN_STAGE]; |
| 41 | }; |
| 42 | |
| 43 | |
| 44 | class Tr2ResourceSetDescriptionAL |