diff options
| author | 2020-02-21 15:48:19 -0300 | |
|---|---|---|
| committer | 2020-02-21 15:48:19 -0300 | |
| commit | 6b2719c0bbf52d412230a36edcfc5793b29e868c (patch) | |
| tree | 82a70471860598f3a695bd8fda89a03f2ecf7325 /src | |
| parent | Merge pull request #3423 from ReinUsesLisp/no-match-3d (diff) | |
| parent | add vertex UnsignedInt size RGBA (diff) | |
| download | yuzu-6b2719c0bbf52d412230a36edcfc5793b29e868c.tar.gz yuzu-6b2719c0bbf52d412230a36edcfc5793b29e868c.tar.xz yuzu-6b2719c0bbf52d412230a36edcfc5793b29e868c.zip | |
Merge pull request #3435 from namkazt/patch-3
vulkan: add DXT23_SRGB
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/maxwell_to_vk.cpp | 4 | ||||
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_device.cpp | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp index 331808113..5403c3ab7 100644 --- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp +++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp | |||
| @@ -164,7 +164,7 @@ struct FormatTuple { | |||
| 164 | {vk::Format::eUndefined, {}}, // ASTC_2D_5X4 | 164 | {vk::Format::eUndefined, {}}, // ASTC_2D_5X4 |
| 165 | {vk::Format::eUndefined, {}}, // BGRA8_SRGB | 165 | {vk::Format::eUndefined, {}}, // BGRA8_SRGB |
| 166 | {vk::Format::eBc1RgbaSrgbBlock, {}}, // DXT1_SRGB | 166 | {vk::Format::eBc1RgbaSrgbBlock, {}}, // DXT1_SRGB |
| 167 | {vk::Format::eUndefined, {}}, // DXT23_SRGB | 167 | {vk::Format::eBc2SrgbBlock, {}}, // DXT23_SRGB |
| 168 | {vk::Format::eBc3SrgbBlock, {}}, // DXT45_SRGB | 168 | {vk::Format::eBc3SrgbBlock, {}}, // DXT45_SRGB |
| 169 | {vk::Format::eBc7SrgbBlock, {}}, // BC7U_SRGB | 169 | {vk::Format::eBc7SrgbBlock, {}}, // BC7U_SRGB |
| 170 | {vk::Format::eR4G4B4A4UnormPack16, Attachable}, // R4G4B4A4U | 170 | {vk::Format::eR4G4B4A4UnormPack16, Attachable}, // R4G4B4A4U |
| @@ -363,6 +363,8 @@ vk::Format VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttr | |||
| 363 | return vk::Format::eR8G8B8A8Uint; | 363 | return vk::Format::eR8G8B8A8Uint; |
| 364 | case Maxwell::VertexAttribute::Size::Size_32: | 364 | case Maxwell::VertexAttribute::Size::Size_32: |
| 365 | return vk::Format::eR32Uint; | 365 | return vk::Format::eR32Uint; |
| 366 | case Maxwell::VertexAttribute::Size::Size_32_32_32_32: | ||
| 367 | return vk::Format::eR32G32B32A32Uint; | ||
| 366 | default: | 368 | default: |
| 367 | break; | 369 | break; |
| 368 | } | 370 | } |
diff --git a/src/video_core/renderer_vulkan/vk_device.cpp b/src/video_core/renderer_vulkan/vk_device.cpp index 588a6835f..3a77aced9 100644 --- a/src/video_core/renderer_vulkan/vk_device.cpp +++ b/src/video_core/renderer_vulkan/vk_device.cpp | |||
| @@ -538,6 +538,7 @@ std::unordered_map<vk::Format, vk::FormatProperties> VKDevice::GetFormatProperti | |||
| 538 | vk::Format::eBc6HUfloatBlock, | 538 | vk::Format::eBc6HUfloatBlock, |
| 539 | vk::Format::eBc6HSfloatBlock, | 539 | vk::Format::eBc6HSfloatBlock, |
| 540 | vk::Format::eBc1RgbaSrgbBlock, | 540 | vk::Format::eBc1RgbaSrgbBlock, |
| 541 | vk::Format::eBc2SrgbBlock, | ||
| 541 | vk::Format::eBc3SrgbBlock, | 542 | vk::Format::eBc3SrgbBlock, |
| 542 | vk::Format::eBc7SrgbBlock, | 543 | vk::Format::eBc7SrgbBlock, |
| 543 | vk::Format::eAstc4x4SrgbBlock, | 544 | vk::Format::eAstc4x4SrgbBlock, |