The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

aux/d3d: Add missing cubemap support

authored by

Fernando Velazquez Innella and committed by
Jakob Bornecrantz
4b78b4c5 fc6fb265

+2 -3
+2 -3
src/xrt/auxiliary/d3d/d3d_d3d11_allocator.cpp
··· 103 103 return XRT_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED; 104 104 } 105 105 if (xsci.face_count == 6) { 106 - //! @todo implement instead of erroring out 107 - D3DA_ERROR("No idea how to do cube maps in d3d11!"); 108 - return XRT_ERROR_ALLOCATION; 106 + desc.ArraySize *= 6; 107 + desc.MiscFlags |= D3D11_RESOURCE_MISC_TEXTURECUBE; 109 108 } 110 109 // Create textures 111 110 std::vector<wil::com_ptr<ID3D11Texture2D1>> images;