MTLSamplerBorderColor

Values that determine the border color for clamped texture values when the sampler address mode is MTLSamplerAddressModeClampToBorderColor.

Values

ValueMeaning
TransparentBlack0

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

OpaqueBlack1

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

OpaqueWhite2

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

Meta