<!--
{
  "availability" : [
    "iOS: 13.0.0 - 26.4.0",
    "iPadOS: 13.0.0 - 26.4.0",
    "macCatalyst: 14.0.0 - 26.4.0",
    "macOS: 11.0.0 - 26.4.0",
    "tvOS: 16.0.0 - 26.4.0",
    "visionOS: 1.0.0 - 26.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLBlitCommandEncoder/resetTextureAccessCounters(_:region:mipLevel:slice:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLBlitCommandEncoder(im)resetTextureAccessCounters:region:mipLevel:slice:"
  },
  "title" : "resetTextureAccessCounters(_:region:mipLevel:slice:)"
}
-->

# resetTextureAccessCounters(_:region:mipLevel:slice:)

Encodes a command that resets a sparse texture’s access data for a specific region, mipmap level, and slice.

```
optional func resetTextureAccessCounters(_ texture: any MTLTexture, region: MTLRegion, mipLevel: Int, slice: Int)
```

## Parameters

`texture`

A sparse texture instance.

`region`

A region within the sparse texture’s `mipLevel`, in sparse tile coordinates.

`mipLevel`

A mipmap level within the sparse texture.

`slice`

A slice within the sparse texture.

## Discussion

---

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)