Explorar el Código

maxwell_to_vk: add vertex format eA2B10G10R10UnormPack32

makigumo hace 6 años
padre
commit
54681909be
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/video_core/renderer_vulkan/maxwell_to_vk.cpp

+ 3 - 1
src/video_core/renderer_vulkan/maxwell_to_vk.cpp

@@ -331,7 +331,9 @@ vk::Format VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttr
             return vk::Format::eR16G16B16Unorm;
             return vk::Format::eR16G16B16Unorm;
         case Maxwell::VertexAttribute::Size::Size_16_16_16_16:
         case Maxwell::VertexAttribute::Size::Size_16_16_16_16:
             return vk::Format::eR16G16B16A16Unorm;
             return vk::Format::eR16G16B16A16Unorm;
-        default:
+        case Maxwell::VertexAttribute::Size::Size_10_10_10_2:
+            return vk::Format::eA2B10G10R10UnormPack32;
+         default:
             break;
             break;
         }
         }
         break;
         break;