For a full example please check /example folder. Here are only the most important parts of the code to illustrate how to use the library.
IMPORTANT: This is the cogentcore branch that was developed for the Cogent Core framework, which also includes the gosl "go as a shader language" package, which converts Go to the HLSL shader language ...