Package apple.metal.enums
Class MTLSamplerAddressMode
- java.lang.Object
-
- apple.metal.enums.MTLSamplerAddressMode
-
public final class MTLSamplerAddressMode extends java.lang.Object[@enum] MTLSamplerAddressMode Options for what value is returned when a fetch falls outside the bounds of a texture. [@constant] MTLSamplerAddressModeClampToEdge Texture coordinates will be clamped between 0 and 1. [@constant] MTLSamplerAddressModeMirrorClampToEdge Mirror the texture while coordinates are within -1..1, and clamp to edge when outside. [@constant] MTLSamplerAddressModeRepeat Wrap to the other side of the texture, effectively ignoring fractional parts of the texture coordinate. [@constant] MTLSamplerAddressModeMirrorRepeat Between -1 and 1 the texture is mirrored across the 0 axis. The image is repeated outside of that range. [@constant] MTLSamplerAddressModeClampToZero ClampToZero returns transparent zero (0,0,0,0) for images with an alpha channel, and returns opaque zero (0,0,0,1) for images without an alpha channel. [@constant] MTLSamplerAddressModeClampToBorderColor Clamp to border color returns the value specified by the borderColor variable of the MTLSamplerDesc.
-
-
Field Summary
Fields Modifier and Type Field Description static longClampToBorderColorstatic longClampToEdgestatic longClampToZerostatic longMirrorClampToEdgestatic longMirrorRepeatstatic longRepeat
-
-
-
Field Detail
-
ClampToEdge
public static final long ClampToEdge
- See Also:
- Constant Field Values
-
Repeat
public static final long Repeat
- See Also:
- Constant Field Values
-
MirrorRepeat
public static final long MirrorRepeat
- See Also:
- Constant Field Values
-
ClampToZero
public static final long ClampToZero
- See Also:
- Constant Field Values
-
MirrorClampToEdge
public static final long MirrorClampToEdge
- See Also:
- Constant Field Values
-
ClampToBorderColor
public static final long ClampToBorderColor
- See Also:
- Constant Field Values
-
-