| 171 | } |
| 172 | |
| 173 | UINT 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 | |
| 182 | D3D12_RESOURCE_FLAGS TextureD3D::BindFlagsToD3DResourceFlags(unsigned int flags) |
| 183 | { |
nothing calls this directly
no outgoing calls
no test coverage detected