to_args


Description:

public Bytes to_args ()

Creates a new `GBytes` args from the current state of the given this.

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

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

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

Parameters:

this

a `GskShaderArgsBuilder`

Returns:

the newly allocated buffer with all the args added to this