Browse Source
Merge pull request #7948 from Morph1984/11-11-10-float
maxwell_to_(gl/vk): Add 11_11_10 float vertex format
pull/15/merge
Mai M
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
0 deletions
-
src/video_core/renderer_opengl/maxwell_to_gl.h
-
src/video_core/renderer_vulkan/maxwell_to_vk.cpp
|
|
|
@ -184,6 +184,8 @@ inline GLenum VertexFormat(Maxwell::VertexAttribute attrib) { |
|
|
|
case Maxwell::VertexAttribute::Size::Size_32_32_32: |
|
|
|
case Maxwell::VertexAttribute::Size::Size_32_32_32_32: |
|
|
|
return GL_FLOAT; |
|
|
|
case Maxwell::VertexAttribute::Size::Size_11_11_10: |
|
|
|
return GL_UNSIGNED_INT_10F_11F_11F_REV; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
@ -495,6 +495,8 @@ VkFormat VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttrib |
|
|
|
return VK_FORMAT_R32G32B32_SFLOAT; |
|
|
|
case Maxwell::VertexAttribute::Size::Size_32_32_32_32: |
|
|
|
return VK_FORMAT_R32G32B32A32_SFLOAT; |
|
|
|
case Maxwell::VertexAttribute::Size::Size_11_11_10: |
|
|
|
return VK_FORMAT_B10G11R11_UFLOAT_PACK32; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
|