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

Function getBindFlags

Source/Falcor/Core/API/FBO.cpp:146–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146ResourceBindFlags getBindFlags(bool isDepth, bool allowUav)
147{
148 ResourceBindFlags flags = ResourceBindFlags::ShaderResource;
149 flags |= isDepth ? ResourceBindFlags::DepthStencil : ResourceBindFlags::RenderTarget;
150
151 if (allowUav)
152 {
153 flags |= ResourceBindFlags::UnorderedAccess;
154 }
155 return flags;
156}
157}; // namespace
158
159size_t Fbo::DescHash::operator()(const Fbo::Desc& d) const

Callers 2

create2DMethod · 0.70
createCubemapMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected