MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / createProgram

Method createProgram

Source/Falcor/Testing/UnitTest.cpp:648–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646///////////////////////////////////////////////////////////////////////////
647
648void 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
667void GPUUnitTestContext::createProgram(const ProgramDesc& desc, const DefineList& programDefines, bool createShaderVars)
668{

Callers 15

GPU_TESTFunction · 0.45
createMethod · 0.45
testFunction · 0.45
GPU_TESTFunction · 0.45
testFunction · 0.45
GPU_TESTFunction · 0.45
testInterlockedAddF16Function · 0.45
GPU_TESTFunction · 0.45
testEnumFunction · 0.45
GPU_TESTFunction · 0.45

Calls 2

createComputeFunction · 0.85
createFunction · 0.50

Tested by

no test coverage detected