예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }