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

Method getRTV

Source/Falcor/Core/API/Texture.cpp:528–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528ref<RenderTargetView> Texture::getRTV(uint32_t mipLevel, uint32_t firstArraySlice, uint32_t arraySize)
529{
530 auto createFunc = [](Texture* pTexture, uint32_t mostDetailedMip, uint32_t mipCount, uint32_t firstArraySlice, uint32_t arraySize)
531 { return RenderTargetView::create(pTexture->getDevice().get(), pTexture, mostDetailedMip, firstArraySlice, arraySize); };
532
533 return findViewCommon<RenderTargetView>(this, mipLevel, 1, firstArraySlice, arraySize, mRtvs, createFunc);
534}
535
536ref<ShaderResourceView> Texture::getSRV(uint32_t mostDetailedMip, uint32_t mipCount, uint32_t firstArraySlice, uint32_t arraySize)
537{

Callers 15

executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeInternalMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80
executeMethod · 0.80

Calls 3

createFunction · 0.70
getMethod · 0.45
getDeviceMethod · 0.45

Tested by 2

testDDSFunction · 0.64
testBlitFunction · 0.64