public void SetUniformValue(int index, int offset, int value) { int errorCode = PsmShaderProgram.SetUniformValue(this.handle, index, offset, ref value, ShaderUniformType.Int); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } }
public void SetUniformValue(int index, ref Vector2 value) { int errorCode = PsmShaderProgram.SetUniformValue(this.handle, index, 0, ref value, ShaderUniformType.Float2); if (errorCode != 0) { Error.ThrowNativeException(errorCode); } }