Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
Precision
VisualShaderNodeDerivativeFunc.swift:66enum Precision
Cases
case none
No precision is specified, the GPU driver is allowed to use whatever level of precision it chooses. This is the default option and is equivalent to using
dFdx()
ordFdy()
in text shaders.case coarse
The derivative will be calculated using the current fragment’s neighbors (which may not include the current fragment). This tends to be faster than using .fine, but may not be suitable when more precision is needed. This is equivalent to using
dFdxCoarse()
ordFdyCoarse()
in text shaders.case fine
The derivative will be calculated using the current fragment and its immediate neighbors. This tends to be slower than using .coarse, but may be necessary when more precision is needed. This is equivalent to using
dFdxFine()
ordFdyFine()
in text shaders.case max
Represents the size of the
Precision
enum.
Other members in extension
Types
Type members
Instance members
var function: VisualShaderNodeDerivativeFunc.Function
A derivative function type. See
Function
for options.var opType: VisualShaderNodeDerivativeFunc.OpType
A type of operands and returned value. See
OpType
for options.var precision: VisualShaderNodeDerivativeFunc.Precision
Sets the level of precision to use for the derivative function. See
Precision
for options. When using the GL Compatibility renderer, this setting has no effect.
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.