Cleanup: GPUShader: Rename GPU_shader_uniform_vector
Rename to `GPU_shader_uniform_float/int_ex` to make more sense as a general purpose function.
This commit is contained in:
@@ -269,7 +269,7 @@ static PyObject *pygpu_shader_uniform_vector_float(BPyGPUShader *self, PyObject
|
||||
}
|
||||
|
||||
GPU_shader_bind(self->shader);
|
||||
GPU_shader_uniform_vector(self->shader, location, length, count, pybuffer.buf);
|
||||
GPU_shader_uniform_float_ex(self->shader, location, length, count, pybuffer.buf);
|
||||
|
||||
PyBuffer_Release(&pybuffer);
|
||||
|
||||
@@ -292,7 +292,7 @@ static PyObject *pygpu_shader_uniform_vector_int(BPyGPUShader *self, PyObject *a
|
||||
}
|
||||
|
||||
GPU_shader_bind(self->shader);
|
||||
GPU_shader_uniform_vector_int(self->shader, location, length, count, pybuffer.buf);
|
||||
GPU_shader_uniform_int_ex(self->shader, location, length, count, pybuffer.buf);
|
||||
|
||||
PyBuffer_Release(&pybuffer);
|
||||
|
||||
@@ -367,7 +367,7 @@ static PyObject *pygpu_shader_uniform_bool(BPyGPUShader *self, PyObject *args)
|
||||
}
|
||||
|
||||
GPU_shader_bind(self->shader);
|
||||
GPU_shader_uniform_vector_int(self->shader, location, length, 1, values);
|
||||
GPU_shader_uniform_int_ex(self->shader, location, length, 1, values);
|
||||
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
@@ -437,7 +437,7 @@ static PyObject *pygpu_shader_uniform_float(BPyGPUShader *self, PyObject *args)
|
||||
}
|
||||
|
||||
GPU_shader_bind(self->shader);
|
||||
GPU_shader_uniform_vector(self->shader, location, length, 1, values);
|
||||
GPU_shader_uniform_float_ex(self->shader, location, length, 1, values);
|
||||
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
@@ -509,7 +509,7 @@ static PyObject *pygpu_shader_uniform_int(BPyGPUShader *self, PyObject *args)
|
||||
}
|
||||
|
||||
GPU_shader_bind(self->shader);
|
||||
GPU_shader_uniform_vector_int(self->shader, location, length, 1, values);
|
||||
GPU_shader_uniform_int_ex(self->shader, location, length, 1, values);
|
||||
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user