diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-07-21 19:09:40 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-07-21 19:09:40 -0500 |
| commit | e892b7f1ac426fdc8a3ac1fa28026b86cc06279b (patch) | |
| tree | cc63449c3ab8ff924a39f23624bbaa9efddd3279 /Source/Core/VideoBackends/D3D12/DX12Context.cpp | |
| parent | 2764978bebce9cedf0e329c320951ff0508f7139 (diff) | |
VideoBackends: add support for cube maps for OGL, Vulkan, and D3D
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/DX12Context.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D12/DX12Context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/D3D12/DX12Context.cpp b/Source/Core/VideoBackends/D3D12/DX12Context.cpp index bf156b2fdb..dd8630ac3b 100644 --- a/Source/Core/VideoBackends/D3D12/DX12Context.cpp +++ b/Source/Core/VideoBackends/D3D12/DX12Context.cpp @@ -88,7 +88,8 @@ std::vector<u32> DXContext::GetAAModes(u32 adapter_index) bool DXContext::SupportsTextureFormat(DXGI_FORMAT format) { - constexpr u32 required = D3D12_FORMAT_SUPPORT1_TEXTURE2D | D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE; + constexpr u32 required = D3D12_FORMAT_SUPPORT1_TEXTURE2D | D3D12_FORMAT_SUPPORT1_TEXTURECUBE | + D3D12_FORMAT_SUPPORT1_SHADER_SAMPLE; D3D12_FEATURE_DATA_FORMAT_SUPPORT support = {format}; return SUCCEEDED(m_device->CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT, &support, |
