Closed JohnDoneth closed 3 years ago
Closes #15
toGlEnum no longer always passes 0 / GL_NONE to glVertexAttribIPointer for integer Vec[T] vertex attributes as it's called on the correct variable.
toGlEnum
0
GL_NONE
glVertexAttribIPointer
Vec[T]
Additionally, when trying to use an integer type that is unsupported in Vec[N, T] types like uint64:
Vec[N, T]
uint64
type Vertex = object position: Vec[2, float32] uv: Vec[2, float32] color: Vec[4, uint64] # <--- Unsupported
The following error is produced:
Error: unsupported vertex field type: <Vec[4, system.uint64]>
Looks good, merging.
Closes #15
toGlEnum
no longer always passes0
/GL_NONE
toglVertexAttribIPointer
for integerVec[T]
vertex attributes as it's called on the correct variable.Additionally, when trying to use an integer type that is unsupported in
Vec[N, T]
types likeuint64
:The following error is produced: