Class (GI Struct)

Gsk-4.0GskShaderArgsBuilderDeprecated 4.16

Builds the uniforms data for a Gsk.GLShader.

since 4.16

Index

Constructors

Properties

Methods

  • Sets the value of the uniform idx.

    The uniform must be of bool type.

    Parameters

    • Deprecatedidx: number

      index of the uniform

    • Deprecatedvalue: boolean

      value to set the uniform to

    Returns void

  • Sets the value of the uniform idx.

    The uniform must be of float type.

    Parameters

    • Deprecatedidx: number

      index of the uniform

    • Deprecatedvalue: number

      value to set the uniform to

    Returns void

  • Sets the value of the uniform idx.

    The uniform must be of int type.

    Parameters

    • Deprecatedidx: number

      index of the uniform

    • Deprecatedvalue: number

      value to set the uniform to

    Returns void

  • Sets the value of the uniform idx.

    The uniform must be of uint type.

    Parameters

    • Deprecatedidx: number

      index of the uniform

    • Deprecatedvalue: number

      value to set the uniform to

    Returns void

  • Sets the value of the uniform idx.

    The uniform must be of vec2 type.

    Parameters

    • Deprecatedidx: number

      index of the uniform

    • Deprecatedvalue: Vec2

      value to set the uniform too

    Returns void

  • Sets the value of the uniform idx.

    The uniform must be of vec3 type.

    Parameters

    • Deprecatedidx: number

      index of the uniform

    • Deprecatedvalue: Vec3

      value to set the uniform too

    Returns void

  • Sets the value of the uniform idx.

    The uniform must be of vec4 type.

    Parameters

    • Deprecatedidx: number

      index of the uniform

    • Deprecatedvalue: Vec4

      value to set the uniform too

    Returns void

  • Creates a new GLib.Bytes 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 Gsk.ShaderArgsBuilder 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 Gsk.ShaderArgsBuilder.free_to_args.

    Returns GLib.Bytes

    the newly allocated buffer with all the args added to builder

  • Decreases the reference count of a GskShaderArgBuilder by one.

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

    Returns void