Shader.FromMemory

static Shader FromMemory(Byte[]& data)

   
Byte[]& data A precompiled StereoKit Shader file as bytes, you can get these bytes from Shader.Compile!
RETURNS: Shader A shader from the given data, or null if it failed to load/compile.

Creates a shader asset from a precompiled StereoKit Shader file stored as bytes! If you don’t have a precompiled shader file, you can make one with the Shader.Compile method. The Id will be the shader’s internal name.