<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Metal",
  "identifier" : "/documentation/Metal/MTLSamplerBorderColor",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Metal"
    ],
    "preciseIdentifier" : "c:@E@MTLSamplerBorderColor"
  },
  "title" : "MTLSamplerBorderColor"
}
-->

# MTLSamplerBorderColor

Values that determine the border color for clamped texture values when the sampler address mode is [`MTLSamplerAddressMode.clampToBorderColor`](/documentation/Metal/MTLSamplerAddressMode/clampToBorderColor).

```
enum MTLSamplerBorderColor
```

## Topics

### Specifying border color options

[`MTLSamplerBorderColor.transparentBlack`](/documentation/Metal/MTLSamplerBorderColor/transparentBlack)

A transparent black color `(0,0,0,0)` for texture values outside the border.

[`MTLSamplerBorderColor.opaqueBlack`](/documentation/Metal/MTLSamplerBorderColor/opaqueBlack)

An opaque black color `(0,0,0,1)` for texture values outside the border

[`MTLSamplerBorderColor.opaqueWhite`](/documentation/Metal/MTLSamplerBorderColor/opaqueWhite)

An opaque white color `(1,1,1,1)` for texture values outside the border.



---

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)