diff options
| author | 2018-04-29 13:50:02 -0400 | |
|---|---|---|
| committer | 2018-04-29 16:05:17 -0400 | |
| commit | 316327f48730a40cab2a497dcb2d7ccb5a716bff (patch) | |
| tree | d3cbb60d4be21f2d7774a40c43c82656fd472bf4 /src | |
| parent | shader_bytecode: Add decoding for FMNMX instruction. (diff) | |
| download | yuzu-316327f48730a40cab2a497dcb2d7ccb5a716bff.tar.gz yuzu-316327f48730a40cab2a497dcb2d7ccb5a716bff.tar.xz yuzu-316327f48730a40cab2a497dcb2d7ccb5a716bff.zip | |
maxwell_to_gl: Implement type SignedNorm, Size_8_8_8_8.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h index a49265b38..a630610d8 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h | |||
| @@ -36,6 +36,18 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) { | |||
| 36 | return {}; | 36 | return {}; |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | case Maxwell::VertexAttribute::Type::SignedNorm: { | ||
| 40 | |||
| 41 | switch (attrib.size) { | ||
| 42 | case Maxwell::VertexAttribute::Size::Size_8_8_8_8: | ||
| 43 | return GL_BYTE; | ||
| 44 | } | ||
| 45 | |||
| 46 | NGLOG_CRITICAL(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString()); | ||
| 47 | UNREACHABLE(); | ||
| 48 | return {}; | ||
| 49 | } | ||
| 50 | |||
| 39 | case Maxwell::VertexAttribute::Type::Float: | 51 | case Maxwell::VertexAttribute::Type::Float: |
| 40 | return GL_FLOAT; | 52 | return GL_FLOAT; |
| 41 | } | 53 | } |