Implement support for all Int32 vertex formats. (#179)

This commit is contained in:
Stephen White
2018-04-10 14:35:17 -04:00
committed by Corentin Wallez
parent e5ae3274a3
commit 10a659ad91
6 changed files with 50 additions and 8 deletions

View File

@@ -49,6 +49,11 @@ namespace backend { namespace opengl {
case nxt::VertexFormat::FloatR32G32:
case nxt::VertexFormat::FloatR32:
return GL_FLOAT;
case nxt::VertexFormat::IntR32G32B32A32:
case nxt::VertexFormat::IntR32G32B32:
case nxt::VertexFormat::IntR32G32:
case nxt::VertexFormat::IntR32:
return GL_INT;
case nxt::VertexFormat::UshortR16G16B16A16:
case nxt::VertexFormat::UshortR16G16:
return GL_UNSIGNED_SHORT;