ShaderArgsBuilder.toArgs

Creates a new [glib.bytes.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.shader_args_builder.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.shader_args_builder.ShaderArgsBuilder.freeToArgs].

Returns

the newly allocated buffer with

all the args added to builder