MCPcopy Create free account
hub / github.com/LibreVR/Revive / BindFlagsToD3DBindFlags

Method BindFlagsToD3DBindFlags

Revive/TextureD3D.cpp:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161UINT TextureD3D::BindFlagsToD3DBindFlags(unsigned int flags)
162{
163 UINT result = D3D11_BIND_SHADER_RESOURCE;
164 if (flags & ovrTextureBind_DX_RenderTarget)
165 result |= D3D11_BIND_RENDER_TARGET;
166 if (flags & ovrTextureBind_DX_UnorderedAccess)
167 result |= D3D11_BIND_UNORDERED_ACCESS;
168 if (flags & ovrTextureBind_DX_DepthStencil)
169 result |= D3D11_BIND_DEPTH_STENCIL;
170 return result;
171}
172
173UINT TextureD3D::MiscFlagsToD3DMiscFlags(unsigned int flags)
174{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected