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

Method getGlobalState

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

Source from the content-addressed store, hash-verified

142}
143
144Resource::State Resource::getGlobalState() const
145{
146 if (mState.isGlobal == false)
147 {
148 logWarning(
149 "Resource::getGlobalState() - the resource doesn't have a global state. The subresoruces are in a different state, use "
150 "getSubResourceState() instead"
151 );
152 return State::Undefined;
153 }
154 return mState.global;
155}
156
157Resource::State Resource::getSubresourceState(uint32_t arraySlice, uint32_t mipLevel) const
158{

Callers 2

textureBarrierMethod · 0.80
bufferBarrierMethod · 0.80

Calls 1

logWarningFunction · 0.50

Tested by

no test coverage detected