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

Method prepareImages

Source/Falcor/Core/API/Swapchain.cpp:99–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void Swapchain::prepareImages()
100{
101 for (uint32_t i = 0; i < mDesc.imageCount; ++i)
102 {
103 Slang::ComPtr<gfx::ITextureResource> resource;
104 FALCOR_GFX_CALL(mGfxSwapchain->getImage(i, resource.writeRef()));
105 mImages.push_back(mpDevice->createTextureFromResource(
106 resource,
107 Texture::Type::Texture2D,
108 mDesc.format,
109 mDesc.width,
110 mDesc.height,
111 1,
112 1,
113 1,
114 1,
115 ResourceBindFlags::RenderTarget,
116 Resource::State::Undefined
117 ));
118 }
119}
120
121} // namespace Falcor

Callers

nothing calls this directly

Calls 3

writeRefMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected