Gjsify LogoGjsify Logo

An object to build the uniforms data for a GskGLShader.

record

Hierarchy

  • ShaderArgsBuilder

Index

Constructors

Properties

name: string

Methods

  • set_bool(idx: number, value: boolean): void
  • Sets the value of the uniform idx.

    The uniform must be of bool type.

    Parameters

    • idx: number

      index of the uniform

    • value: boolean

      value to set the uniform to

    Returns void

  • set_float(idx: number, value: number): void
  • Sets the value of the uniform idx.

    The uniform must be of float type.

    Parameters

    • idx: number

      index of the uniform

    • value: number

      value to set the uniform to

    Returns void

  • set_int(idx: number, value: number): void
  • Sets the value of the uniform idx.

    The uniform must be of int type.

    Parameters

    • idx: number

      index of the uniform

    • value: number

      value to set the uniform to

    Returns void

  • set_uint(idx: number, value: number): void
  • Sets the value of the uniform idx.

    The uniform must be of uint type.

    Parameters

    • idx: number

      index of the uniform

    • value: number

      value to set the uniform to

    Returns void

  • set_vec2(idx: number, value: Vec2): void
  • Sets the value of the uniform idx.

    The uniform must be of vec2 type.

    Parameters

    • idx: number

      index of the uniform

    • value: Vec2

      value to set the uniform too

    Returns void

  • Sets the value of the uniform idx.

    The uniform must be of vec3 type.

    Parameters

    • idx: number

      index of the uniform

    • value: Graphene.Vec3

      value to set the uniform too

    Returns void

  • set_vec4(idx: number, value: Vec4): void
  • Sets the value of the uniform idx.

    The uniform must be of vec4 type.

    Parameters

    • idx: number

      index of the uniform

    • value: Vec4

      value to set the uniform too

    Returns void

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

    Any uniforms of the shader that have not been explicitly set on the builder are zero-initialized.

    The given GskShaderArgsBuilder is reset once this function returns; you cannot call this function multiple times on the same builder instance.

    This function is intended primarily for bindings. C code should use [methodGsk.ShaderArgsBuilder.free_to_args].

    Returns Bytes

  • unref(): void
  • Decreases the reference count of a GskShaderArgBuilder by one.

    If the resulting reference count is zero, frees the builder.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method