| 159 | } |
| 160 | |
| 161 | UINT 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 | |
| 173 | UINT TextureD3D::MiscFlagsToD3DMiscFlags(unsigned int flags) |
| 174 | { |
nothing calls this directly
no outgoing calls
no test coverage detected