aux/d3d: Add missing cubemap support

This commit is contained in:
Fernando Velazquez Innella 2023-03-13 12:44:58 -04:00 committed by Jakob Bornecrantz
parent fc6fb265ff
commit 4b78b4c58e

View file

@ -103,9 +103,8 @@ try {
return XRT_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED;
}
if (xsci.face_count == 6) {
//! @todo implement instead of erroring out
D3DA_ERROR("No idea how to do cube maps in d3d11!");
return XRT_ERROR_ALLOCATION;
desc.ArraySize *= 6;
desc.MiscFlags |= D3D11_RESOURCE_MISC_TEXTURECUBE;
}
// Create textures
std::vector<wil::com_ptr<ID3D11Texture2D1>> images;