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

Method FullScreenPass

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

Source from the content-addressed store, hash-verified

73static SharedCache<FullScreenPass::SharedData, Device*> sSharedCache;
74
75FullScreenPass::FullScreenPass(ref<Device> pDevice, const ProgramDesc& progDesc, const DefineList& programDefines)
76 : BaseGraphicsPass(pDevice, progDesc, programDefines)
77{
78 // Get shared VB and VAO.
79 mpSharedData = sSharedCache.acquire(mpDevice, [this]() { return std::make_shared<SharedData>(mpDevice); });
80
81 // Create depth stencil state
82 FALCOR_ASSERT(mpState);
83 auto pDsState = DepthStencilState::create(DepthStencilState::Desc().setDepthEnabled(false));
84 mpState->setDepthStencilState(pDsState);
85
86 mpState->setVao(mpSharedData->pVao);
87}
88
89FullScreenPass::~FullScreenPass() = default;
90

Callers

nothing calls this directly

Calls 3

acquireMethod · 0.80
createFunction · 0.50
DescClass · 0.50

Tested by

no test coverage detected