Class MTLPixelFormat


  • public final class MTLPixelFormat
    extends java.lang.Object
    API-Since: 8.0
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • A8Unorm

        public static final long A8Unorm
        Normal 8 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R8Unorm

        public static final long R8Unorm
        Normal 8 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R8Unorm_sRGB

        public static final long R8Unorm_sRGB
        Normal 8 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R8Snorm

        public static final long R8Snorm
        Normal 8 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R8Uint

        public static final long R8Uint
        Normal 8 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R8Sint

        public static final long R8Sint
        Normal 8 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R16Unorm

        public static final long R16Unorm
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R16Snorm

        public static final long R16Snorm
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R16Uint

        public static final long R16Uint
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R16Sint

        public static final long R16Sint
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R16Float

        public static final long R16Float
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG8Unorm

        public static final long RG8Unorm
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG8Unorm_sRGB

        public static final long RG8Unorm_sRGB
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG8Snorm

        public static final long RG8Snorm
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG8Uint

        public static final long RG8Uint
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG8Sint

        public static final long RG8Sint
        Normal 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • B5G6R5Unorm

        public static final long B5G6R5Unorm
        Packed 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • A1BGR5Unorm

        public static final long A1BGR5Unorm
        Packed 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • ABGR4Unorm

        public static final long ABGR4Unorm
        Packed 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • BGR5A1Unorm

        public static final long BGR5A1Unorm
        Packed 16 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R32Uint

        public static final long R32Uint
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R32Sint

        public static final long R32Sint
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • R32Float

        public static final long R32Float
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG16Unorm

        public static final long RG16Unorm
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG16Snorm

        public static final long RG16Snorm
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG16Uint

        public static final long RG16Uint
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG16Sint

        public static final long RG16Sint
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG16Float

        public static final long RG16Float
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA8Unorm

        public static final long RGBA8Unorm
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA8Unorm_sRGB

        public static final long RGBA8Unorm_sRGB
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA8Snorm

        public static final long RGBA8Snorm
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA8Uint

        public static final long RGBA8Uint
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA8Sint

        public static final long RGBA8Sint
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • BGRA8Unorm

        public static final long BGRA8Unorm
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • BGRA8Unorm_sRGB

        public static final long BGRA8Unorm_sRGB
        Normal 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGB10A2Unorm

        public static final long RGB10A2Unorm
        Packed 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGB10A2Uint

        public static final long RGB10A2Uint
        Packed 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG11B10Float

        public static final long RG11B10Float
        Packed 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGB9E5Float

        public static final long RGB9E5Float
        Packed 32 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • BGR10_XR

        public static final long BGR10_XR
        Packed 32 bit formats API-Since: 10.0
        See Also:
        Constant Field Values
      • BGR10_XR_sRGB

        public static final long BGR10_XR_sRGB
        Packed 32 bit formats API-Since: 10.0
        See Also:
        Constant Field Values
      • RG32Uint

        public static final long RG32Uint
        Normal 64 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG32Sint

        public static final long RG32Sint
        Normal 64 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RG32Float

        public static final long RG32Float
        Normal 64 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA16Unorm

        public static final long RGBA16Unorm
        Normal 64 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA16Snorm

        public static final long RGBA16Snorm
        Normal 64 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA16Uint

        public static final long RGBA16Uint
        Normal 64 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA16Sint

        public static final long RGBA16Sint
        Normal 64 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA16Float

        public static final long RGBA16Float
        Normal 64 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • BGRA10_XR

        public static final long BGRA10_XR
        Normal 64 bit formats API-Since: 10.0
        See Also:
        Constant Field Values
      • BGRA10_XR_sRGB

        public static final long BGRA10_XR_sRGB
        Normal 64 bit formats API-Since: 10.0
        See Also:
        Constant Field Values
      • RGBA32Uint

        public static final long RGBA32Uint
        Normal 128 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA32Sint

        public static final long RGBA32Sint
        Normal 128 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • RGBA32Float

        public static final long RGBA32Float
        Normal 128 bit formats API-Since: 8.0
        See Also:
        Constant Field Values
      • PVRTC_RGB_2BPP

        public static final long PVRTC_RGB_2BPP
        PVRTC API-Since: 8.0
        See Also:
        Constant Field Values
      • PVRTC_RGB_2BPP_sRGB

        public static final long PVRTC_RGB_2BPP_sRGB
        PVRTC API-Since: 8.0
        See Also:
        Constant Field Values
      • PVRTC_RGB_4BPP

        public static final long PVRTC_RGB_4BPP
        PVRTC API-Since: 8.0
        See Also:
        Constant Field Values
      • PVRTC_RGB_4BPP_sRGB

        public static final long PVRTC_RGB_4BPP_sRGB
        PVRTC API-Since: 8.0
        See Also:
        Constant Field Values
      • PVRTC_RGBA_2BPP

        public static final long PVRTC_RGBA_2BPP
        PVRTC API-Since: 8.0
        See Also:
        Constant Field Values
      • PVRTC_RGBA_2BPP_sRGB

        public static final long PVRTC_RGBA_2BPP_sRGB
        PVRTC API-Since: 8.0
        See Also:
        Constant Field Values
      • PVRTC_RGBA_4BPP

        public static final long PVRTC_RGBA_4BPP
        PVRTC API-Since: 8.0
        See Also:
        Constant Field Values
      • PVRTC_RGBA_4BPP_sRGB

        public static final long PVRTC_RGBA_4BPP_sRGB
        PVRTC API-Since: 8.0
        See Also:
        Constant Field Values
      • EAC_R11Unorm

        public static final long EAC_R11Unorm
        ETC2 API-Since: 8.0
        See Also:
        Constant Field Values
      • EAC_R11Snorm

        public static final long EAC_R11Snorm
        ETC2 API-Since: 8.0
        See Also:
        Constant Field Values
      • EAC_RG11Unorm

        public static final long EAC_RG11Unorm
        ETC2 API-Since: 8.0
        See Also:
        Constant Field Values
      • EAC_RG11Snorm

        public static final long EAC_RG11Snorm
        ETC2 API-Since: 8.0
        See Also:
        Constant Field Values
      • EAC_RGBA8_sRGB

        public static final long EAC_RGBA8_sRGB
        ETC2 API-Since: 8.0
        See Also:
        Constant Field Values
      • ETC2_RGB8_sRGB

        public static final long ETC2_RGB8_sRGB
        ETC2 API-Since: 8.0
        See Also:
        Constant Field Values
      • ETC2_RGB8A1_sRGB

        public static final long ETC2_RGB8A1_sRGB
        ETC2 API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_4x4_sRGB

        public static final long ASTC_4x4_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_5x4_sRGB

        public static final long ASTC_5x4_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_5x5_sRGB

        public static final long ASTC_5x5_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_6x5_sRGB

        public static final long ASTC_6x5_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_6x6_sRGB

        public static final long ASTC_6x6_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_8x5_sRGB

        public static final long ASTC_8x5_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_8x6_sRGB

        public static final long ASTC_8x6_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_8x8_sRGB

        public static final long ASTC_8x8_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_10x5_sRGB

        public static final long ASTC_10x5_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_10x6_sRGB

        public static final long ASTC_10x6_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_10x8_sRGB

        public static final long ASTC_10x8_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_10x10_sRGB

        public static final long ASTC_10x10_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_12x10_sRGB

        public static final long ASTC_12x10_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_12x12_sRGB

        public static final long ASTC_12x12_sRGB
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_4x4_LDR

        public static final long ASTC_4x4_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_5x4_LDR

        public static final long ASTC_5x4_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_5x5_LDR

        public static final long ASTC_5x5_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_6x5_LDR

        public static final long ASTC_6x5_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_6x6_LDR

        public static final long ASTC_6x6_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_8x5_LDR

        public static final long ASTC_8x5_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_8x6_LDR

        public static final long ASTC_8x6_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_8x8_LDR

        public static final long ASTC_8x8_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_10x5_LDR

        public static final long ASTC_10x5_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_10x6_LDR

        public static final long ASTC_10x6_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_10x8_LDR

        public static final long ASTC_10x8_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_10x10_LDR

        public static final long ASTC_10x10_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_12x10_LDR

        public static final long ASTC_12x10_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • ASTC_12x12_LDR

        public static final long ASTC_12x12_LDR
        ASTC API-Since: 8.0
        See Also:
        Constant Field Values
      • GBGR422

        public static final long GBGR422
        [@constant] MTLPixelFormatGBGR422 A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values. This format is equivalent to YUY2, YUYV, yuvs, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_REV_APPLE. The component order, from lowest addressed byte to highest, is Y0, Cb, Y1, Cr. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode. API-Since: 8.0
        See Also:
        Constant Field Values
      • BGRG422

        public static final long BGRG422
        [@constant] MTLPixelFormatBGRG422 A pixel format where the red and green channels are subsampled horizontally. Two pixels are stored in 32 bits, with shared red and blue values, and unique green values. This format is equivalent to UYVY, 2vuy, or GL_RGB_422_APPLE/GL_UNSIGNED_SHORT_8_8_APPLE. The component order, from lowest addressed byte to highest, is Cb, Y0, Cr, Y1. There is no implicit colorspace conversion from YUV to RGB, the shader will receive (Cr, Y, Cb, 1). 422 textures must have a width that is a multiple of 2, and can only be used for 2D non-mipmap textures. When sampling, ClampToEdge is the only usable wrap mode. API-Since: 8.0
        See Also:
        Constant Field Values
      • Depth32Float

        public static final long Depth32Float
        Depth API-Since: 8.0
        See Also:
        Constant Field Values
      • Depth32Float_Stencil8

        public static final long Depth32Float_Stencil8
        Depth Stencil API-Since: 9.0
        See Also:
        Constant Field Values
      • X32_Stencil8

        public static final long X32_Stencil8
        Depth Stencil API-Since: 10.0
        See Also:
        Constant Field Values
      • BGR10A2Unorm

        public static final long BGR10A2Unorm
        Packed 32 bit formats API-Since: 11.0
        See Also:
        Constant Field Values
      • ASTC_4x4_HDR

        public static final long ASTC_4x4_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_5x4_HDR

        public static final long ASTC_5x4_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_5x5_HDR

        public static final long ASTC_5x5_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_6x5_HDR

        public static final long ASTC_6x5_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_6x6_HDR

        public static final long ASTC_6x6_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_8x5_HDR

        public static final long ASTC_8x5_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_8x6_HDR

        public static final long ASTC_8x6_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_8x8_HDR

        public static final long ASTC_8x8_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_10x5_HDR

        public static final long ASTC_10x5_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_10x6_HDR

        public static final long ASTC_10x6_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_10x8_HDR

        public static final long ASTC_10x8_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_10x10_HDR

        public static final long ASTC_10x10_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_12x10_HDR

        public static final long ASTC_12x10_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • ASTC_12x12_HDR

        public static final long ASTC_12x12_HDR
        ASTC HDR (High Dynamic Range) Formats API-Since: 13.0
        See Also:
        Constant Field Values
      • Depth16Unorm

        public static final long Depth16Unorm
        Depth API-Since: 13.0
        See Also:
        Constant Field Values
      • BC1_RGBA_sRGB

        public static final long BC1_RGBA_sRGB
        S3TC/DXT API-Since: 16.4
        See Also:
        Constant Field Values
      • BC2_RGBA_sRGB

        public static final long BC2_RGBA_sRGB
        S3TC/DXT API-Since: 16.4
        See Also:
        Constant Field Values
      • BC3_RGBA_sRGB

        public static final long BC3_RGBA_sRGB
        S3TC/DXT API-Since: 16.4
        See Also:
        Constant Field Values
      • BC6H_RGBFloat

        public static final long BC6H_RGBFloat
        BPTC API-Since: 16.4
        See Also:
        Constant Field Values
      • BC6H_RGBUfloat

        public static final long BC6H_RGBUfloat
        BPTC API-Since: 16.4
        See Also:
        Constant Field Values
      • BC7_RGBAUnorm

        public static final long BC7_RGBAUnorm
        BPTC API-Since: 16.4
        See Also:
        Constant Field Values
      • BC7_RGBAUnorm_sRGB

        public static final long BC7_RGBAUnorm_sRGB
        BPTC API-Since: 16.4
        See Also:
        Constant Field Values