| 646 | /////////////////////////////////////////////////////////////////////////// |
| 647 | |
| 648 | void GPUUnitTestContext::createProgram( |
| 649 | const std::filesystem::path& path, |
| 650 | const std::string& entry, |
| 651 | const DefineList& programDefines, |
| 652 | SlangCompilerFlags flags, |
| 653 | ShaderModel shaderModel, |
| 654 | bool createShaderVars |
| 655 | ) |
| 656 | { |
| 657 | // Create program. |
| 658 | mpProgram = Program::createCompute(mpDevice, path, entry, programDefines, flags, shaderModel); |
| 659 | mpState = ComputeState::create(mpDevice); |
| 660 | mpState->setProgram(mpProgram); |
| 661 | |
| 662 | // Create vars unless it should be deferred. |
| 663 | if (createShaderVars) |
| 664 | createVars(); |
| 665 | } |
| 666 | |
| 667 | void GPUUnitTestContext::createProgram(const ProgramDesc& desc, const DefineList& programDefines, bool createShaderVars) |
| 668 | { |
no test coverage detected