Class SpvcMslSamplerYcbcrConversion

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class SpvcMslSamplerYcbcrConversion
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Maps to the sampler Y'CbCr conversion-related portions of MSLConstexprSampler.

    Layout

    
     struct spvc_msl_sampler_ycbcr_conversion {
         unsigned int planes;
         spvc_msl_format_resolution resolution;
         spvc_msl_sampler_filter chroma_filter;
         spvc_msl_chroma_location x_chroma_offset;
         spvc_msl_chroma_location y_chroma_offset;
         spvc_msl_component_swizzle swizzle[4];
         spvc_msl_sampler_ycbcr_model_conversion ycbcr_model;
         spvc_msl_sampler_ycbcr_range ycbcr_range;
         unsigned int bpc;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • PLANES, RESOLUTION, CHROMA_FILTER, X_CHROMA_OFFSET, Y_CHROMA_OFFSET, SWIZZLE, YCBCR_MODEL, YCBCR_RANGE, BPC

        The struct member offsets.
    • Constructor Detail

      • SpvcMslSamplerYcbcrConversion

        public SpvcMslSamplerYcbcrConversion​(java.nio.ByteBuffer container)
        Creates a SpvcMslSamplerYcbcrConversion instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • planes

        public int planes()
        Returns:
        the value of the planes field.
      • resolution

        public int resolution()
        Returns:
        the value of the resolution field.
      • chroma_filter

        public int chroma_filter()
        Returns:
        the value of the chroma_filter field.
      • x_chroma_offset

        public int x_chroma_offset()
        Returns:
        the value of the x_chroma_offset field.
      • y_chroma_offset

        public int y_chroma_offset()
        Returns:
        the value of the y_chroma_offset field.
      • swizzle

        public java.nio.IntBuffer swizzle()
        Returns:
        a IntBuffer view of the swizzle field.
      • swizzle

        public int swizzle​(int index)
        Returns:
        the value at the specified index of the swizzle field.
      • ycbcr_model

        public int ycbcr_model()
        Returns:
        the value of the ycbcr_model field.
      • ycbcr_range

        public int ycbcr_range()
        Returns:
        the value of the ycbcr_range field.
      • bpc

        public int bpc()
        Returns:
        the value of the bpc field.
      • swizzle

        public SpvcMslSamplerYcbcrConversion swizzle​(int index,
                                                     int value)
        Sets the specified value at the specified index of the swizzle field.
      • set

        public SpvcMslSamplerYcbcrConversion set​(int planes,
                                                 int resolution,
                                                 int chroma_filter,
                                                 int x_chroma_offset,
                                                 int y_chroma_offset,
                                                 java.nio.IntBuffer swizzle,
                                                 int ycbcr_model,
                                                 int ycbcr_range,
                                                 int bpc)
        Initializes this struct with the specified values.
      • malloc

        public static SpvcMslSamplerYcbcrConversion malloc()
        Returns a new SpvcMslSamplerYcbcrConversion instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static SpvcMslSamplerYcbcrConversion calloc()
        Returns a new SpvcMslSamplerYcbcrConversion instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static SpvcMslSamplerYcbcrConversion create​(long address)
        Returns a new SpvcMslSamplerYcbcrConversion instance for the specified memory address.
      • malloc

        public static SpvcMslSamplerYcbcrConversion malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new SpvcMslSamplerYcbcrConversion instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static SpvcMslSamplerYcbcrConversion calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new SpvcMslSamplerYcbcrConversion instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nplanes

        public static int nplanes​(long struct)
        Unsafe version of planes().
      • nresolution

        public static int nresolution​(long struct)
        Unsafe version of resolution().
      • nchroma_filter

        public static int nchroma_filter​(long struct)
        Unsafe version of chroma_filter().
      • nx_chroma_offset

        public static int nx_chroma_offset​(long struct)
        Unsafe version of x_chroma_offset().
      • ny_chroma_offset

        public static int ny_chroma_offset​(long struct)
        Unsafe version of y_chroma_offset().
      • nswizzle

        public static java.nio.IntBuffer nswizzle​(long struct)
        Unsafe version of swizzle().
      • nswizzle

        public static int nswizzle​(long struct,
                                   int index)
        Unsafe version of swizzle.
      • nycbcr_model

        public static int nycbcr_model​(long struct)
        Unsafe version of ycbcr_model().
      • nycbcr_range

        public static int nycbcr_range​(long struct)
        Unsafe version of ycbcr_range().
      • nbpc

        public static int nbpc​(long struct)
        Unsafe version of bpc().
      • nplanes

        public static void nplanes​(long struct,
                                   int value)
        Unsafe version of planes.
      • nresolution

        public static void nresolution​(long struct,
                                       int value)
        Unsafe version of resolution.
      • nchroma_filter

        public static void nchroma_filter​(long struct,
                                          int value)
        Unsafe version of chroma_filter.
      • nx_chroma_offset

        public static void nx_chroma_offset​(long struct,
                                            int value)
        Unsafe version of x_chroma_offset.
      • ny_chroma_offset

        public static void ny_chroma_offset​(long struct,
                                            int value)
        Unsafe version of y_chroma_offset.
      • nswizzle

        public static void nswizzle​(long struct,
                                    java.nio.IntBuffer value)
        Unsafe version of swizzle.
      • nswizzle

        public static void nswizzle​(long struct,
                                    int index,
                                    int value)
        Unsafe version of swizzle.
      • nycbcr_model

        public static void nycbcr_model​(long struct,
                                        int value)
        Unsafe version of ycbcr_model.
      • nycbcr_range

        public static void nycbcr_range​(long struct,
                                        int value)
        Unsafe version of ycbcr_range.
      • nbpc

        public static void nbpc​(long struct,
                                int value)
        Unsafe version of bpc.