Table of Contents

Class ShaderArgsBuilder

Namespace
Gsk
Assembly
Gsk-4.0.dll
public sealed class ShaderArgsBuilder : BoxedRecord, IEquatable<ShaderArgsBuilder>
Inheritance
ShaderArgsBuilder
Implements
Inherited Members

Constructors

ShaderArgsBuilder(ShaderArgsBuilderOwnedHandle)

public ShaderArgsBuilder(ShaderArgsBuilderOwnedHandle handle)

Parameters

handle ShaderArgsBuilderOwnedHandle

Properties

Handle

public ShaderArgsBuilderOwnedHandle Handle { get; }

Property Value

ShaderArgsBuilderOwnedHandle

Methods

Equals(ShaderArgsBuilder?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ShaderArgsBuilder? other)

Parameters

other ShaderArgsBuilder

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FreeToArgs()

public Bytes FreeToArgs()

Returns

Bytes

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

New(GLShader, Bytes?)

public static ShaderArgsBuilder New(GLShader shader, Bytes? initialValues)

Parameters

shader GLShader
initialValues Bytes

Returns

ShaderArgsBuilder

Ref()

public ShaderArgsBuilder Ref()

Returns

ShaderArgsBuilder

SetBool(int, bool)

public void SetBool(int idx, bool value)

Parameters

idx int
value bool

SetFloat(int, float)

public void SetFloat(int idx, float value)

Parameters

idx int
value float

SetInt(int, int)

public void SetInt(int idx, int value)

Parameters

idx int
value int

SetUint(int, uint)

public void SetUint(int idx, uint value)

Parameters

idx int
value uint

SetVec2(int, Vec2)

public void SetVec2(int idx, Vec2 value)

Parameters

idx int
value Vec2

SetVec3(int, Vec3)

public void SetVec3(int idx, Vec3 value)

Parameters

idx int
value Vec3

SetVec4(int, Vec4)

public void SetVec4(int idx, Vec4 value)

Parameters

idx int
value Vec4

ToArgs()

public Bytes ToArgs()

Returns

Bytes

Unref()

public void Unref()