MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / SetArrayViewports

Method SetArrayViewports

src/engine/View.cpp:339–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void CubemapView::SetArrayViewports(int resolution, int firstArraySlice)
340{
341 m_FirstArraySlice = firstArraySlice;
342
343 for (int face = 0; face < 6; face++)
344 {
345 m_FaceViews[face].SetViewport(nvrhi::Viewport(float(resolution), float(resolution)));
346 m_FaceViews[face].SetArraySlice(face + firstArraySlice);
347 }
348}
349
350void CubemapView::UpdateCache()
351{

Callers

nothing calls this directly

Calls 2

SetArraySliceMethod · 0.80
SetViewportMethod · 0.45

Tested by

no test coverage detected