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

Method clear

Source/Falcor/Utils/Image/TextureAnalyzer.cpp:114–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void TextureAnalyzer::clear(RenderContext* pRenderContext, ref<Buffer> pResult, uint64_t resultOffset, size_t resultCount) const
115{
116 FALCOR_ASSERT(pRenderContext);
117 FALCOR_ASSERT(pResult && resultOffset + resultCount * getResultSize() <= pResult->getSize());
118 FALCOR_ASSERT(resultCount > 0 && resultOffset < std::numeric_limits<uint32_t>::max());
119
120 // Bind resources.
121 auto var = mpClearPass->getRootVar()["gTextureAnalyzer"];
122 var["result"] = pResult;
123 var["resultOffset"] = (uint32_t)resultOffset;
124 var["inputDim"] = uint2((uint32_t)resultCount, 1);
125
126 mpClearPass->execute(pRenderContext, uint3(resultCount, 1, 1));
127}
128
129void TextureAnalyzer::checkFormatSupport(const ref<Texture> pInput, uint32_t mipLevel, uint32_t arraySlice) const
130{

Callers

nothing calls this directly

Calls 4

getRootVarMethod · 0.80
maxFunction · 0.50
getSizeMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected