Class SpvcCombinedImageSampler

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

    public class SpvcCombinedImageSampler
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct spvc_combined_image_sampler {
         spvc_variable_id combined_id();
         spvc_variable_id image_id();
         spvc_variable_id sampler_id();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • COMBINED_ID, IMAGE_ID, SAMPLER_ID

        The struct member offsets.
    • Constructor Detail

      • SpvcCombinedImageSampler

        public SpvcCombinedImageSampler​(java.nio.ByteBuffer container)
        Creates a SpvcCombinedImageSampler 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
      • combined_id

        public int combined_id()
        the ID of the sampler2D variable
      • image_id

        public int image_id()
        the ID of the texture2D variable
      • sampler_id

        public int sampler_id()
        the ID of the sampler variable
      • set

        public SpvcCombinedImageSampler set​(int combined_id,
                                            int image_id,
                                            int sampler_id)
        Initializes this struct with the specified values.
      • malloc

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

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

        public static SpvcCombinedImageSampler create()
        Returns a new SpvcCombinedImageSampler instance allocated with BufferUtils.
      • create

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

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

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

        public static SpvcCombinedImageSampler.Buffer calloc​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new SpvcCombinedImageSampler.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ncombined_id

        public static int ncombined_id​(long struct)
        Unsafe version of combined_id().
      • nimage_id

        public static int nimage_id​(long struct)
        Unsafe version of image_id().
      • nsampler_id

        public static int nsampler_id​(long struct)
        Unsafe version of sampler_id().
      • ncombined_id

        public static void ncombined_id​(long struct,
                                        int value)
        Unsafe version of combined_id.
      • nimage_id

        public static void nimage_id​(long struct,
                                     int value)
        Unsafe version of image_id.
      • nsampler_id

        public static void nsampler_id​(long struct,
                                       int value)
        Unsafe version of sampler_id.