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
fun freeToArgs(): <Error class: unknown class>

Creates a new GBytes args from the current state of the given @builder, and frees the @builder instance.

Link copied to clipboard

Increases the reference count of a GskShaderArgsBuilder by one.

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

Sets the value of the uniform @idx.

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

Sets the value of the uniform @idx.

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

Sets the value of the uniform @idx.

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

Sets the value of the uniform @idx.

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

Sets the value of the uniform @idx.

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

Sets the value of the uniform @idx.

Link copied to clipboard
fun setVec4(idx: <Error class: unknown class>, 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.