createShader

expect abstract fun createShader(vsCode: String, tcsCode: String?, tesCode: String?, gsCode: String?, fsCode: String, name: String, session: Session? = Session.active): Shader(source)

Create a shader from code

Parameters

vsCode

vertex shader code

gsCode

optional geometry shader code

fsCode

fragment shader code

actual abstract fun createShader(vsCode: String, tcsCode: String?, tesCode: String?, gsCode: String?, fsCode: String, name: String, session: Session?): Shader(source)

Create a shader from code

Parameters

vsCode

vertex shader code

gsCode

optional geometry shader code

fsCode

fragment shader code

actual abstract fun createShader(vsCode: String, tcsCode: String?, tesCode: String?, gsCode: String?, fsCode: String, name: String, session: Session?): Shader(source)

Create a shader from code

Parameters

vsCode

vertex shader code

gsCode

optional geometry shader code

fsCode

fragment shader code