mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-25 01:40:58 +01:00
maxwell_to_gl: Implement type SignedNorm, Size_8_8_8_8.
This commit is contained in:
parent
c7ce472eeb
commit
316327f487
1 changed files with 12 additions and 0 deletions
|
@ -36,6 +36,18 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case Maxwell::VertexAttribute::Type::SignedNorm: {
|
||||||
|
|
||||||
|
switch (attrib.size) {
|
||||||
|
case Maxwell::VertexAttribute::Size::Size_8_8_8_8:
|
||||||
|
return GL_BYTE;
|
||||||
|
}
|
||||||
|
|
||||||
|
NGLOG_CRITICAL(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString());
|
||||||
|
UNREACHABLE();
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
case Maxwell::VertexAttribute::Type::Float:
|
case Maxwell::VertexAttribute::Type::Float:
|
||||||
return GL_FLOAT;
|
return GL_FLOAT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue