| 93 | } |
| 94 | |
| 95 | void Tr2RtPipelineStateDescriptionAL::AddShaders( size_t count, const wchar_t** exportNames, const Tr2ShaderBytecodeAL& bytecode, const wchar_t** names, uint32_t payloadSize ) |
| 96 | { |
| 97 | Shader shader; |
| 98 | shader.names.reserve( count ); |
| 99 | for( size_t i = 0; i < count; ++i ) |
| 100 | { |
| 101 | ShaderName sn; |
| 102 | sn.name = names[i]; |
| 103 | sn.exportName = exportNames[i]; |
| 104 | shader.names.push_back( sn ); |
| 105 | } |
| 106 | auto code = new uint8_t[bytecode.size]; |
| 107 | memcpy( code, bytecode.bytecode, bytecode.size ); |
| 108 | shader.bytecode = Tr2ShaderBytecodeAL( code, bytecode.size ); |
| 109 | shader.payloadSize = payloadSize; |
| 110 | shader.localSignature = NO_SIGNATURE; |
| 111 | m_shaders.emplace_back( std::move( shader ) ); |
| 112 | } |
| 113 | |
| 114 | void Tr2RtPipelineStateDescriptionAL::AddShaders( size_t count, const wchar_t** exportNames, const Tr2ShaderBytecodeAL& bytecode, const wchar_t** names, uint32_t payloadSize, const Tr2ShaderSignatureAL& signature ) |
| 115 | { |
no test coverage detected