Class ShaderArgsBuilder
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
ShaderArgsBuilderHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
initialValues
BytesHandleTransfer 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
ShaderArgsBuilderHandleTransfer 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
ShaderArgsBuilderHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
value
boolTransfer 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
ShaderArgsBuilderHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
value
floatTransfer 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
ShaderArgsBuilderHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
value
intTransfer 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
ShaderArgsBuilderHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
value
uintTransfer 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
ShaderArgsBuilderHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
value
Vec2HandleTransfer 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
ShaderArgsBuilderHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
value
Vec3HandleTransfer 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
ShaderArgsBuilderHandleTransfer ownership: None Nullable: False
idx
intTransfer ownership: None Nullable: False
value
Vec4HandleTransfer ownership: None Nullable: False
ToArgs(ShaderArgsBuilderHandle)
Calls native method gsk_shader_args_builder_to_args.
public static extern BytesOwnedHandle ToArgs(ShaderArgsBuilderHandle builder)
Parameters
builder
ShaderArgsBuilderHandleTransfer 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
ShaderArgsBuilderHandleTransfer ownership: None Nullable: False