preprocessShader

fun preprocessShader(source: String, symbols: MutableSet<String> = mutableSetOf()): String(source)

Preprocess shader source. Looks for "#pragma import" statements and injects found phrases.

Return

GLSL source code with injected shader phrases

Parameters

source

GLSL source code encoded as string