MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / ProcessLocalCubemap

Method ProcessLocalCubemap

Rtxpt/IntroSample.cpp:208–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void IntroPathTracer::ProcessLocalCubemap(nvrhi::CommandListHandle commandList)
209{
210 ScopedPerfMarker perfMarker("ProcessLocalCubemap", commandList);
211
212 EnvMapBaker::CubemapProcessingOptions opts;
213 opts.generateMips = true;
214 opts.ggxPrefilter = true;
215 opts.projectToSH = true;
216
217 EnvMapBaker::CubemapProcessingResults dstTextures;
218 dstTextures.filteredCubemap = m_ggxFilteredCubemap;
219 dstTextures.diffuseIrradianceCube = m_IrradianceCube;
220
221 GetEnvMapBaker()->ProcessCubemap(
222 commandList.Get(), GetBindingCache(),
223 m_renderTargets->LocalCubemap,
224 opts, dstTextures);
225}
226
227void IntroPathTracer::RenderSSR(nvrhi::CommandListHandle commandList, const SampleConstants& constants)
228{

Callers

nothing calls this directly

Calls 2

ProcessCubemapMethod · 0.80
GetMethod · 0.80

Tested by

no test coverage detected