Enumeration

SKUniformType

An enumerated type to identify the type of a uniform object.

Declaration

enum SKUniformType : Int

Topics

Constants

case none

Indicates that the uniform variable does not currently hold any data. A uniform object has this type until the first time its value is set.

case float

Indicates that the uniform variable holds a 32-bit floating-point value.

case floatVector2

Indicates that the uniform variable holds a vector of two 32-bit floating-point values.

case floatVector3

Indicates that the uniform variable holds a vector of three 32-bit floating-point values.

case floatVector4

Indicates that the uniform variable holds a vector of four 32-bit floating-point values.

case floatMatrix2

Indicates that the uniform variable holds a 2 x 2 matrix of four 32-bit floating-point values.

case floatMatrix3

Indicates that the uniform variable holds a 3 x 3 matrix of four 32-bit floating-point values.

case floatMatrix4

Indicates that the uniform variable holds a 3 x 3 matrix of four 32-bit floating-point values.

case texture

Indicates that the uniform variable holds a reference to a SpriteKit texture.