VisualShaderNodeCompare

package
v0.0.0-...-af89a4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package VisualShaderNodeCompare provides methods for working with VisualShaderNodeCompare object instances.

Index

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 Any

type Any interface {
	gd.IsClass
	AsVisualShaderNodeCompare() Instance
}

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 ([code]mat4[/code]) type.*/
	CtypeTransform ComparisonType = 7
	/*Represents the size of the [enum ComparisonType] enum.*/
	CtypeMax ComparisonType = 8
)

type Condition

type Condition int //gd:VisualShaderNodeCompare.Condition
const (
	/*The result will be [code]true[/code] if all components in the vector satisfy the comparison condition.*/
	CondAll Condition = 0
	/*The result will be [code]true[/code] if any component in the vector satisfies the comparison condition.*/
	CondAny Condition = 1
	/*Represents the size of the [enum Condition] enum.*/
	CondMax Condition = 2
)

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

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]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsRefCounted

func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted

func (*Extension[T]) AsResource

func (self *Extension[T]) AsResource() Resource.Instance

func (*Extension[T]) AsVisualShaderNode

func (self *Extension[T]) AsVisualShaderNode() VisualShaderNode.Instance

func (*Extension[T]) AsVisualShaderNodeCompare

func (self *Extension[T]) AsVisualShaderNodeCompare() Instance

type Function

type Function int //gd:VisualShaderNodeCompare.Function
const (
	/*Comparison for equality ([code]a == b[/code]).*/
	FuncEqual Function = 0
	/*Comparison for inequality ([code]a != b[/code]).*/
	FuncNotEqual Function = 1
	/*Comparison for greater than ([code]a > b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].*/
	FuncGreaterThan Function = 2
	/*Comparison for greater than or equal ([code]a >= b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].*/
	FuncGreaterThanEqual Function = 3
	/*Comparison for less than ([code]a < b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].*/
	FuncLessThan Function = 4
	/*Comparison for less than or equal ([code]a <= b[/code]). Cannot be used if [member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM].*/
	FuncLessThanEqual Function = 5
	/*Represents the size of the [enum Function] enum.*/
	FuncMax Function = 6
)

type ID

type ID Object.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.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

type Instance [1]gdclass.VisualShaderNodeCompare

Compares [code]a[/code] and [code]b[/code] of [member type] by [member function]. Returns a boolean scalar. Translates to [code]if[/code] instruction in shader code.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) AsVisualShaderNode

func (self Instance) AsVisualShaderNode() VisualShaderNode.Instance

func (Instance) AsVisualShaderNodeCompare

func (self Instance) AsVisualShaderNodeCompare() Instance

func (Instance) Condition

func (self Instance) Condition() Condition

func (Instance) Function

func (self Instance) Function() Function

func (Instance) ID

func (self Instance) ID() ID

func (Instance) SetCondition

func (self Instance) SetCondition(value Condition)

func (Instance) SetFunction

func (self Instance) SetFunction(value Function)

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) SetType

func (self Instance) SetType(value ComparisonType)

func (Instance) Type

func (self Instance) Type() ComparisonType

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL