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

Method asBuffer

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

Source from the content-addressed store, hash-verified

135}
136
137ref<Buffer> Resource::asBuffer()
138{
139 // In the past, Falcor relied on undefined behavior checking `this` for nullptr, returning nullptr if `this` was nullptr.
140 FALCOR_ASSERT(this);
141 return ref<Buffer>(dynamic_cast<Buffer*>(this));
142}
143
144Resource::State Resource::getGlobalState() const
145{

Callers 3

ExternalMemoryMethod · 0.80
prepareResourceMethod · 0.80
getBufferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected