Documentation
¶
Overview ¶
Compares a and b of Instance.Type by Instance.Function. Returns a boolean scalar. Translates to if instruction in shader code.
Index ¶
- type Advanced
- type Any
- type ComparisonType
- type Condition
- type Extension
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
- func (self *Extension[T]) AsResource() Resource.Instance
- func (self *Extension[T]) AsVisualShaderNode() VisualShaderNode.Instance
- func (self *Extension[T]) AsVisualShaderNodeCompare() Instance
- type Function
- type ID
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsVisualShaderNode() VisualShaderNode.Instance
- func (self Instance) AsVisualShaderNodeCompare() Instance
- func (self Instance) Condition() Condition
- func (self Instance) Function() Function
- func (self Instance) ID() ID
- func (self Instance) SetCondition(value Condition)
- func (self Instance) SetFunction(value Function)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetType(value ComparisonType)
- func (self Instance) Type() ComparisonType
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type ComparisonType ¶
type ComparisonType int //gd:VisualShaderNodeCompare.ComparisonType
const ( // A floating-point scalar. CtypeScalar ComparisonType = 0 // An integer scalar. CtypeScalarInt ComparisonType = 1 // An unsigned integer scalar. CtypeScalarUint ComparisonType = 2 // A 2D vector type. CtypeVector2d ComparisonType = 3 // A 3D vector type. CtypeVector3d ComparisonType = 4 // A 4D vector type. CtypeVector4d ComparisonType = 5 // A boolean type. CtypeBoolean ComparisonType = 6 // A transform (mat4) type. CtypeTransform ComparisonType = 7 // Represents the size of the [ComparisonType] enum. CtypeMax ComparisonType = 8 )
type Condition ¶
type Condition int //gd:VisualShaderNodeCompare.Condition
const ( // The result will be true if all components in the vector satisfy the comparison condition. CondAll Condition = 0 // The result will be true if any component in the vector satisfies the comparison condition. CondAny Condition = 1 // Represents the size of the [Condition] enum. CondMax Condition = 2 )
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
func (*Extension[T]) AsVisualShaderNode ¶
func (self *Extension[T]) AsVisualShaderNode() VisualShaderNode.Instance
func (*Extension[T]) AsVisualShaderNodeCompare ¶
type Function ¶
type Function int //gd:VisualShaderNodeCompare.Function
const ( // Comparison for equality (a == b). FuncEqual Function = 0 // Comparison for inequality (a != b). FuncNotEqual Function = 1 // Comparison for greater than (a > b). Cannot be used if [Instance.Type] set to [CtypeBoolean] or [CtypeTransform]. FuncGreaterThan Function = 2 // Comparison for greater than or equal (a >= b). Cannot be used if [Instance.Type] set to [CtypeBoolean] or [CtypeTransform]. FuncGreaterThanEqual Function = 3 // Comparison for less than (a < b). Cannot be used if [Instance.Type] set to [CtypeBoolean] or [CtypeTransform]. FuncLessThan Function = 4 // Comparison for less than or equal (a <= b). Cannot be used if [Instance.Type] set to [CtypeBoolean] or [CtypeTransform]. FuncLessThanEqual Function = 5 // Represents the size of the [Function] enum. FuncMax Function = 6 )
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.VisualShaderNodeCompare
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsVisualShaderNode ¶
func (self Instance) AsVisualShaderNode() VisualShaderNode.Instance
func (Instance) AsVisualShaderNodeCompare ¶
func (Instance) SetCondition ¶
func (Instance) SetFunction ¶
func (Instance) SetType ¶
func (self Instance) SetType(value ComparisonType)
func (Instance) Type ¶
func (self Instance) Type() ComparisonType