Skip to content

Commit

Permalink
Add ivec2, ivec3, ivec4 to ATYPEINFO in glir.py
Browse files Browse the repository at this point in the history
I was playing around with sampling texels and these were required in my
fragment shader.
  • Loading branch information
hmaarrfk committed Oct 31, 2023
1 parent c366456 commit 84509e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vispy/gloo/glir.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,9 @@ class GlirProgram(GlirObject):
'vec2': (2, gl.GL_FLOAT, np.float32),
'vec3': (3, gl.GL_FLOAT, np.float32),
'vec4': (4, gl.GL_FLOAT, np.float32),
'ivec2': (2, gl.GL_INT, np.int32),
'ivec3': (3, gl.GL_INT, np.int32),
'ivec4': (4, gl.GL_INT, np.int32),
'int': (1, gl.GL_INT, np.int32),
'bool': (1, gl.GL_BOOL, np.int32)
}
Expand Down

0 comments on commit 84509e0

Please sign in to comment.