raysan5 / raylib

A simple and easy-to-use library to enjoy videogames programming
http://www.raylib.com
zlib License
20.66k stars 2.12k forks source link

[rlgl] Add unsigned int to rlSetUniform #4137

Open spevnev opened 2 weeks ago

spevnev commented 2 weeks ago

Please, before submitting a new issue verify and check:

Issue description

rlSetUniform doesn't provide a way to set unsigned uniform, i.e. no way to call glUniform1uiv, glUniform2uiv, glUniform3uiv, glUniform4uiv.

Environment

Computer shader with OpenGL4.3

raysan5 commented 2 weeks ago

@spevnev Is this request intended to address a specific use-case? Or is it just for completion?

spevnev commented 2 weeks ago

My use-case is having uniform uint length; in compute shader. It just makes sense to have it unsigned rather than signed.