ShaderArgsBuilder

class ShaderArgsBuilder(pointer: <Error class: unknown class><<Error class: unknown class>>)

An object to build the uniforms data for a GskGLShader.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gskShaderArgsBuilderPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Increases the reference count of a GskShaderArgsBuilder by one.

Link copied to clipboard
fun setBool(idx: Int, value: Boolean)

Sets the value of the uniform @idx.

Link copied to clipboard
fun setFloat(idx: Int, value: Float)

Sets the value of the uniform @idx.

Link copied to clipboard
fun setInt(idx: Int, value: Int)

Sets the value of the uniform @idx.

Link copied to clipboard
fun setUint(idx: Int, value: <Error class: unknown class>)

Sets the value of the uniform @idx.

Link copied to clipboard
fun setVec2(idx: Int, value: <Error class: unknown class>)

Sets the value of the uniform @idx.

Link copied to clipboard
fun setVec3(idx: Int, value: <Error class: unknown class>)

Sets the value of the uniform @idx.

Link copied to clipboard
fun setVec4(idx: Int, value: <Error class: unknown class>)

Sets the value of the uniform @idx.

Link copied to clipboard
fun toArgs(): <Error class: unknown class>

Creates a new GBytes args from the current state of the given @builder.

Link copied to clipboard
fun unref()

Decreases the reference count of a GskShaderArgBuilder by one.