<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USDKit",
  "identifier" : "/documentation/USDKit/USDValue/Vec2i",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit8USDValueV5Vec2iV"
  },
  "title" : "USDValue.Vec2i"
}
-->

# USDValue.Vec2i

A 2-component 32-bit integer vector.

```
@frozen struct Vec2i
```

## Topics

### Initializers

[`init()`](/documentation/USDKit/USDValue/Vec2i/init())

Creates a zero vector.

[`init(SIMD2<Int32>)`](/documentation/USDKit/USDValue/Vec2i/init(_:))

Creates a vector from a `SIMD2<Int32>`.

[`init(Int32, Int32)`](/documentation/USDKit/USDValue/Vec2i/init(_:_:)-7uw95)

[`init(Int, Int)`](/documentation/USDKit/USDValue/Vec2i/init(_:_:)-8faxo)

Creates a vector with the given components.

### Instance Properties

[`var simd: SIMD2<Int32>`](/documentation/USDKit/USDValue/Vec2i/simd)

The vector as a `SIMD2<Int32>`.

[`var x: Int32`](/documentation/USDKit/USDValue/Vec2i/x)

[`var y: Int32`](/documentation/USDKit/USDValue/Vec2i/y)

### Subscripts

[`subscript(Int) -> Int32`](/documentation/USDKit/USDValue/Vec2i/subscript(_:))

Accesses the component at the specified index.

## Relationships

### Conforms To

[`MetadataValue`](/documentation/USDKit/USDStage/Object/MetadataValue)

[`USDValueProtocol`](/documentation/USDKit/USDValueProtocol)

[`Escapable`](/documentation/Swift/Escapable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`Copyable`](/documentation/Swift/Copyable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Value`](/documentation/USDKit/USDPrim/Attribute/Value)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)