toArgs

fun toArgs(): <Error class: unknown class>(source)

⚠️ Deprecated ⚠️

This is deprecated since version 4.16.

GTK's new Vulkan-focused rendering does not support this feature. Use ../gtk4/class.GLArea.html for OpenGL rendering.

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 method@Gsk.ShaderArgsBuilder.free_to_args.

Return

the newly allocated buffer with all the args added to @builder