Overloads
static Task<Shader> CompileAsync (string source, CancellationToken token)

Parameters

NameTypeDescription
source string The whole Slang or .shader file
token = null CancellationToken Stops the compile

Returns

TypeDescription
Task<Shader>

Exceptions

TypeWhen
Sandbox.ShaderCompileException The shader didn't compile
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.