Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
PortType
VisualShaderNode.swift:19enum PortType
Cases
case scalar
Floating-point scalar. Translated to [code skip-lint]float` type in shader code.
case scalarInt
Integer scalar. Translated to [code skip-lint]int` type in shader code.
case scalarUint
Unsigned integer scalar. Translated to [code skip-lint]uint` type in shader code.
case vector2d
2D vector of floating-point values. Translated to [code skip-lint]vec2` type in shader code.
case vector3d
3D vector of floating-point values. Translated to [code skip-lint]vec3` type in shader code.
case vector4d
4D vector of floating-point values. Translated to [code skip-lint]vec4` type in shader code.
case boolean
Boolean type. Translated to [code skip-lint]bool` type in shader code.
case transform
Transform type. Translated to [code skip-lint]mat4` type in shader code.
case sampler
Sampler type. Translated to reference of sampler uniform in shader code. Can only be used for input ports in non-uniform nodes.
case max
Represents the size of the
PortType
enum.
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (9) members.
Type members
Instance members
var defaultInputValues: GArray
var linkedParentGraphFrame: Int32
Represents the index of the frame this node is linked to. If set to
-1
the node is not linked to any frame.var outputPortForPreview: Int32
Sets the output port index which will be showed for preview. If set to
-1
no port will be open for preview.func clearDefaultInputValues(
) Clears the default input ports value.
func getDefaultInputPort(type: VisualShaderNode.PortType
) -> Int32 Returns the input port which should be connected by default when this node is created as a result of dragging a connection from an existing node to the empty space on the graph.
func getInputPortDefaultValue(port: Int32
) -> Variant Returns the default value of the input
port
.func removeInputPortDefaultValue(port: Int32
) Removes the default value of the input
port
.func setInputPortDefaultValue(port: Int32, value: Variant, prevValue: Variant
) Sets the default
value
for the selected inputport
.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.