<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKNoiseMap/sampleCount",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKNoiseMap(py)sampleCount"
  },
  "title" : "sampleCount"
}
-->

# sampleCount

The width and height of integer grid for which the noise map contains sampled noise values.

```
var sampleCount: vector_int2 { get }
```

## Discussion

This property is read-only; you define the origin of a noise map when creating it with the [`interpolatedValue(at:)`](/documentation/GameplayKit/GKNoiseMap/interpolatedValue(at:)) initializer.

---

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)