createShadeStyleManager
expect abstract fun createShadeStyleManager( name: String, vsGenerator: (ShadeStructure) -> String, tcsGenerator: (ShadeStructure) -> String? = null, tesGenerator: (ShadeStructure) -> String? = null, gsGenerator: (ShadeStructure) -> String? = null, fsGenerator: (ShadeStructure) -> String, session: Session? = Session.root): ShadeStyleManager(source)
Creates a new instance of ShadeStyleManager
used to manage shade styles.
Return
A new instance of ShadeStyleManager
.
Parameters
name
The name of the ShadeStyleManager
.
vsGenerator
A function generating the vertex shader code from a ShadeStructure
.
tcsGenerator
An optional function generating the tessellation control shader code from a ShadeStructure
.
tesGenerator
An optional function generating the tessellation evaluation shader code from a ShadeStructure
.
gsGenerator
An optional function generating the geometry shader code from a ShadeStructure
.
fsGenerator
A function generating the fragment shader code from a ShadeStructure
.
session
The session associated with the ShadeStyleManager
. Defaults to the root session if not provided.
actual abstract fun createShadeStyleManager( name: String, vsGenerator: (ShadeStructure) -> String, tcsGenerator: (ShadeStructure) -> String?, tesGenerator: (ShadeStructure) -> String?, gsGenerator: (ShadeStructure) -> String?, fsGenerator: (ShadeStructure) -> String, session: Session?): ShadeStyleManager(source)
actual abstract fun createShadeStyleManager( name: String, vsGenerator: (ShadeStructure) -> String, tcsGenerator: (ShadeStructure) -> String?, tesGenerator: (ShadeStructure) -> String?, gsGenerator: (ShadeStructure) -> String?, fsGenerator: (ShadeStructure) -> String, session: Session?): ShadeStyleManager(source)