| 135 | } |
| 136 | |
| 137 | ref<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 | |
| 144 | Resource::State Resource::getGlobalState() const |
| 145 | { |
no outgoing calls
no test coverage detected