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
Methods
Equals(ShaderArgsBuilder?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ShaderArgsBuilder? other)
Parameters
other
ShaderArgsBuilderAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
FreeToArgs()
public Bytes FreeToArgs()
Returns
GetGType()
public static Type GetGType()
Returns
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
Returns
Ref()
public ShaderArgsBuilder Ref()
Returns
SetBool(int, bool)
public void SetBool(int idx, bool value)
Parameters
SetFloat(int, float)
public void SetFloat(int idx, float value)
Parameters
SetInt(int, int)
public void SetInt(int idx, int value)
Parameters
SetUint(int, uint)
public void SetUint(int idx, uint value)
Parameters
SetVec2(int, Vec2)
public void SetVec2(int idx, Vec2 value)
Parameters
SetVec3(int, Vec3)
public void SetVec3(int idx, Vec3 value)
Parameters
SetVec4(int, Vec4)
public void SetVec4(int idx, Vec4 value)
Parameters
ToArgs()
public Bytes ToArgs()
Returns
Unref()
public void Unref()