Package-level declarations

Types

Link copied to clipboard
class PhraseResource<R>(resourceUrl: String) : ReadOnlyProperty<R, String>

PhraseResource can be used as a delegate

Link copied to clipboard
class ShaderPhrase(val phrase: String)

A single shader phrase.

Link copied to clipboard
expect open class ShaderPhraseBook(bookId: String)

A book of shader phrases.

actual open class ShaderPhraseBook(val bookId: String)

A book of shader phrases.

actual open class ShaderPhraseBook(val bookId: String)

A book of shader phrases.

Link copied to clipboard

The global, application-wide, shader phrase registry

Functions

Link copied to clipboard

PhraseResource delegate builder function

Link copied to clipboard
Link copied to clipboard
fun Shader.Companion.preprocessedFromUrls(vsUrl: String, tcsUrl: String? = null, tesUrl: String? = null, gsUrl: String? = null, fsUrl: String): Shader
Link copied to clipboard
fun preprocessShader(source: String, symbols: MutableSet<String> = mutableSetOf()): String

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

Link copied to clipboard
fun preprocessShaderFromUrl(url: String, symbols: MutableSet<String> = mutableSetOf()): String

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