mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Implement support for all Int32 vertex formats. (#179)
This commit is contained in:
committed by
Corentin Wallez
parent
e5ae3274a3
commit
10a659ad91
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user