Storage for a vector of two floating-point values.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
@frozen @_alignment(8) struct SIMD2Storage
Storage for a vector of two floating-point values.
SDK
Framework
@frozen @_alignment(8) struct SIMD2Storage
typealias Float .SIMD2Storage .Scalar
The type of scalars in the vector space.
init()
Creates a vector with zero in all lanes.
var scalar Count: Int
The number of scalars, or elements, in the vector.
static var scalar Count: Int
The number of scalars, or elements, in a vector of this type.
subscript(Int) -> Float
Accesses the element at the specified index.
struct Float .SIMD4Storage
Storage for a vector of four floating-point values.
struct Float .SIMD8Storage
Storage for a vector of eight floating-point values.
struct Float .SIMD16Storage
Storage for a vector of 16 floating-point values.
struct Float .SIMD32Storage
Storage for a vector of 32 floating-point values.
struct Float .SIMD64Storage
Storage for a vector of 64 floating-point values.