Sfoglia il codice sorgente

Merge pull request #3519 from ReinUsesLisp/int-formats

maxwell_to_vk: Implement RG32 and RGB32 integer vertex formats
Mat M 6 anni fa
parent
commit
9fdfd58f9f
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/video_core/renderer_vulkan/maxwell_to_vk.cpp

+ 4 - 0
src/video_core/renderer_vulkan/maxwell_to_vk.cpp

@@ -367,6 +367,10 @@ vk::Format VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttr
             return vk::Format::eR8G8B8A8Uint;
         case Maxwell::VertexAttribute::Size::Size_32:
             return vk::Format::eR32Uint;
+        case Maxwell::VertexAttribute::Size::Size_32_32:
+            return vk::Format::eR32G32Uint;
+        case Maxwell::VertexAttribute::Size::Size_32_32_32:
+            return vk::Format::eR32G32B32Uint;
         case Maxwell::VertexAttribute::Size::Size_32_32_32_32:
             return vk::Format::eR32G32B32A32Uint;
         default: