 Calling SetShaderVector4 gives a runtime error: SetShaderVector4 is not a function. The correct function is SetShaderVec4. As provided in your type definitions: 