Table of Contents

Class ShaderArgsBuilder

Namespace
Gsk.Internal
Assembly
Gsk-4.0.dll
public class ShaderArgsBuilder
Inheritance
ShaderArgsBuilder
Inherited Members

Methods

FreeToArgs(ShaderArgsBuilderHandle)

Calls native method gsk_shader_args_builder_free_to_args.

public static extern BytesOwnedHandle FreeToArgs(ShaderArgsBuilderHandle builder)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

Returns

BytesOwnedHandle

Transfer ownership: Full Nullable: False

GetGType()

Calls native function gsk_shader_args_builder_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

New(IntPtr, BytesHandle)

Calls native constructor gsk_shader_args_builder_new.

public static extern ShaderArgsBuilderOwnedHandle New(IntPtr shader, BytesHandle initialValues)

Parameters

shader IntPtr

Transfer ownership: None Nullable: False

initialValues BytesHandle

Transfer ownership: None Nullable: True

Returns

ShaderArgsBuilderOwnedHandle

Transfer ownership: Full Nullable: False

Ref(ShaderArgsBuilderHandle)

Calls native method gsk_shader_args_builder_ref.

public static extern ShaderArgsBuilderOwnedHandle Ref(ShaderArgsBuilderHandle builder)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

Returns

ShaderArgsBuilderOwnedHandle

Transfer ownership: Full Nullable: False

SetBool(ShaderArgsBuilderHandle, int, bool)

Calls native method gsk_shader_args_builder_set_bool.

public static extern void SetBool(ShaderArgsBuilderHandle builder, int idx, bool value)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

idx int

Transfer ownership: None Nullable: False

value bool

Transfer ownership: None Nullable: False

SetFloat(ShaderArgsBuilderHandle, int, float)

Calls native method gsk_shader_args_builder_set_float.

public static extern void SetFloat(ShaderArgsBuilderHandle builder, int idx, float value)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

idx int

Transfer ownership: None Nullable: False

value float

Transfer ownership: None Nullable: False

SetInt(ShaderArgsBuilderHandle, int, int)

Calls native method gsk_shader_args_builder_set_int.

public static extern void SetInt(ShaderArgsBuilderHandle builder, int idx, int value)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

idx int

Transfer ownership: None Nullable: False

value int

Transfer ownership: None Nullable: False

SetUint(ShaderArgsBuilderHandle, int, uint)

Calls native method gsk_shader_args_builder_set_uint.

public static extern void SetUint(ShaderArgsBuilderHandle builder, int idx, uint value)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

idx int

Transfer ownership: None Nullable: False

value uint

Transfer ownership: None Nullable: False

SetVec2(ShaderArgsBuilderHandle, int, Vec2Handle)

Calls native method gsk_shader_args_builder_set_vec2.

public static extern void SetVec2(ShaderArgsBuilderHandle builder, int idx, Vec2Handle value)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

idx int

Transfer ownership: None Nullable: False

value Vec2Handle

Transfer ownership: None Nullable: False

SetVec3(ShaderArgsBuilderHandle, int, Vec3Handle)

Calls native method gsk_shader_args_builder_set_vec3.

public static extern void SetVec3(ShaderArgsBuilderHandle builder, int idx, Vec3Handle value)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

idx int

Transfer ownership: None Nullable: False

value Vec3Handle

Transfer ownership: None Nullable: False

SetVec4(ShaderArgsBuilderHandle, int, Vec4Handle)

Calls native method gsk_shader_args_builder_set_vec4.

public static extern void SetVec4(ShaderArgsBuilderHandle builder, int idx, Vec4Handle value)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

idx int

Transfer ownership: None Nullable: False

value Vec4Handle

Transfer ownership: None Nullable: False

ToArgs(ShaderArgsBuilderHandle)

Calls native method gsk_shader_args_builder_to_args.

public static extern BytesOwnedHandle ToArgs(ShaderArgsBuilderHandle builder)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False

Returns

BytesOwnedHandle

Transfer ownership: Full Nullable: False

Unref(ShaderArgsBuilderHandle)

Calls native method gsk_shader_args_builder_unref.

public static extern void Unref(ShaderArgsBuilderHandle builder)

Parameters

builder ShaderArgsBuilderHandle

Transfer ownership: None Nullable: False