gpu/shaders: use correct type for integer vector

OpenGL supports casting from int to float during vertex array
reading. Direct3D doesn't. Since we're transpiling from GLSL, we can't
directly use the Direct3D builtin "asint". So that leaves using
"ivec2" instead of vec2.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-26 20:50:45 +01:00
parent 7ff2f60412
commit 29d36e11ee
4 changed files with 19 additions and 10 deletions
+1
View File
@@ -166,6 +166,7 @@ const (
const (
DataTypeFloat DataType = iota
DataTypeInt
DataTypeShort
)