MCPcopy Index your code
hub / github.com/processing/processing / setUniformVector

Method setUniformVector

core/src/processing/opengl/PShader.java:676–690  ·  view source on GitHub ↗
(int loc, int[] vec, int ncoords,
                                  int length)

Source from the content-addressed store, hash-verified

674
675
676 protected void setUniformVector(int loc, int[] vec, int ncoords,
677 int length) {
678 if (-1 < loc) {
679 updateIntBuffer(vec);
680 if (ncoords == 1) {
681 pgl.uniform1iv(loc, length, intBuffer);
682 } else if (ncoords == 2) {
683 pgl.uniform2iv(loc, length, intBuffer);
684 } else if (ncoords == 3) {
685 pgl.uniform3iv(loc, length, intBuffer);
686 } else if (ncoords == 4) {
687 pgl.uniform3iv(loc, length, intBuffer);
688 }
689 }
690 }
691
692
693 protected void setUniformVector(int loc, float[] vec, int ncoords,

Callers 1

bindTypedMethod · 0.95

Calls 9

updateIntBufferMethod · 0.95
updateFloatBufferMethod · 0.95
uniform1ivMethod · 0.45
uniform2ivMethod · 0.45
uniform3ivMethod · 0.45
uniform1fvMethod · 0.45
uniform2fvMethod · 0.45
uniform3fvMethod · 0.45
uniform4fvMethod · 0.45

Tested by

no test coverage detected