kool icon indicating copy to clipboard operation
kool copied to clipboard

Lack of support for uniform[1-4]iu?v set of gl functions

Open andrey-zakharov opened this issue 3 years ago • 2 comments

void glUniform1iv(GLint location, GLsizei count, const GLint *value);
void glUniform2iv(GLint location, GLsizei count, const GLint *value);
void glUniform3iv(GLint location, GLsizei count, const GLint *value);
void glUniform4iv(GLint location, GLsizei count, const GLint *value);
void glUniform1uiv(GLint location, GLsizei count, const GLuint *value);
void glUniform2uiv(GLint location, GLsizei count, const GLuint *value);
void glUniform3uiv(GLint location, GLsizei count, const GLuint *value);
void glUniform4uiv(GLint location, GLsizei count, const GLuint *value);

does they exists in Vulkan? IDK. workaround: use fv with converting.

andrey-zakharov avatar Aug 17 '22 19:08 andrey-zakharov

Ah I probably did not implement them because I never needed them, should be pretty straight forward though

fabmax avatar Aug 21 '22 17:08 fabmax

I just wanted to check / fix this and realized that the uniform[*]iv mappings already exist since a while. Am I missing something?

Only the unsigned variants are not implemented yet (and I will keep it that way for now, because the signed integer versions should work fine almost always)

fabmax avatar Sep 02 '22 17:09 fabmax