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

Method asTexture

Source/Falcor/Core/API/Resource.cpp:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130ref<Texture> Resource::asTexture()
131{
132 // In the past, Falcor relied on undefined behavior checking `this` for nullptr, returning nullptr if `this` was nullptr.
133 FALCOR_ASSERT(this);
134 return ref<Texture>(dynamic_cast<Texture*>(this));
135}
136
137ref<Buffer> Resource::asBuffer()
138{

Callers 11

renderDebugWindowMethod · 0.80
onFrameRenderMethod · 0.80
captureOutputMethod · 0.80
copyColorChannelMethod · 0.80
getTextureMethod · 0.80
frameMethod · 0.80
captureOutputMethod · 0.80
blitMethod · 0.80
getTextureMethod · 0.80
GPU_TESTFunction · 0.80

Calls

no outgoing calls

Tested by 3

frameMethod · 0.64
captureOutputMethod · 0.64
GPU_TESTFunction · 0.64