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

Method MiscFlagsToD3DMiscFlags

Revive/TextureD3D.cpp:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173UINT TextureD3D::MiscFlagsToD3DMiscFlags(unsigned int flags)
174{
175 // TODO: Support ovrTextureMisc_AutoGenerateMips
176 UINT result = 0;
177 if (flags & ovrTextureMisc_AllowGenerateMips)
178 result |= D3D11_RESOURCE_MISC_GENERATE_MIPS;
179 return result;
180}
181
182D3D12_RESOURCE_FLAGS TextureD3D::BindFlagsToD3DResourceFlags(unsigned int flags)
183{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected