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

Method getRenderTargetView

Source/Falcor/Core/API/FBO.cpp:312–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312ref<RenderTargetView> Fbo::getRenderTargetView(uint32_t rtIndex) const
313{
314 auto& rt = mColorAttachments[rtIndex];
315 if (rt.pTexture)
316 {
317 return rt.pTexture->getRTV(rt.mipLevel, rt.firstArraySlice, rt.arraySize);
318 }
319 else
320 {
321 if (!rt.pNullView)
322 {
323 // TODO: mColorAttachments doesn't contain enough information to fully determine the view dimension. Assume 2D for now.
324 auto dimension = rt.arraySize > 1 ? RenderTargetView::Dimension::Texture2DArray : RenderTargetView::Dimension::Texture2D;
325 rt.pNullView = RenderTargetView::create(mpDevice, dimension);
326 }
327 return static_ref_cast<RenderTargetView>(rt.pNullView);
328 }
329}
330
331ref<DepthStencilView> Fbo::getDepthStencilView() const
332{

Callers 10

onFrameRenderMethod · 0.80
resizeTargetFBOMethod · 0.80
frameMethod · 0.80
resizeTargetFBOMethod · 0.80
clearFboMethod · 0.80
onFrameRenderMethod · 0.80
renderRTMethod · 0.80
onFrameRenderMethod · 0.80

Calls 2

getRTVMethod · 0.80
createFunction · 0.70

Tested by 2

frameMethod · 0.64
resizeTargetFBOMethod · 0.64