yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

maxwell_to_gl: Implement R8G8_USCALED

This commit is contained in:
ReinUsesLisp 2020-02-04 21:32:36 -03:00
parent c81c361e82
commit 8bb9eef97b
1 changed files with 8 additions and 0 deletions

View File

@ -90,6 +90,14 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) {
LOG_ERROR(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString());
return {};
}
case Maxwell::VertexAttribute::Type::UnsignedScaled:
switch (attrib.size) {
case Maxwell::VertexAttribute::Size::Size_8_8:
return GL_UNSIGNED_BYTE;
default:
LOG_ERROR(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString());
return {};
}
default:
LOG_ERROR(Render_OpenGL, "Unimplemented vertex type={}", attrib.TypeString());
return {};