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

Method create

Source/Falcor/Core/Pass/FullScreenPass.cpp:91–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89FullScreenPass::~FullScreenPass() = default;
90
91ref<FullScreenPass> FullScreenPass::create(ref<Device> pDevice, const ProgramDesc& desc, const DefineList& defines, uint32_t viewportMask)
92{
93 ProgramDesc d = desc;
94 DefineList defs = defines;
95 std::string gs;
96
97 if (viewportMask)
98 {
99 defs.add("_VIEWPORT_MASK", std::to_string(viewportMask));
100 defs.add("_OUTPUT_VERTEX_COUNT", std::to_string(3 * popcount(viewportMask)));
101 d.addShaderLibrary("Core/Pass/FullScreenPass.gs.slang").gsEntry("main");
102 }
103 if (!d.hasEntryPoint(ShaderType::Vertex))
104 d.addShaderLibrary("Core/Pass/FullScreenPass.vs.slang").vsEntry("main");
105
106 return ref<FullScreenPass>(new FullScreenPass(pDevice, d, defs));
107}
108
109ref<FullScreenPass> FullScreenPass::create(
110 ref<Device> pDevice,

Callers

nothing calls this directly

Calls 5

hasEntryPointMethod · 0.80
to_stringFunction · 0.50
popcountFunction · 0.50
createFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected