Class VkSamplerCreateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, MAGFILTER, MINFILTER, MIPMAPMODE, ADDRESSMODEU, ADDRESSMODEV, ADDRESSMODEW, MIPLODBIAS, ANISOTROPYENABLE, MAXANISOTROPY, COMPAREENABLE, COMPAREOP, MINLOD, MAXLOD, BORDERCOLOR, UNNORMALIZEDCOORDINATES

        The struct member offsets.
    • Constructor Detail

      • VkSamplerCreateInfo

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

        public int sType()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • flags

        public int flags()
        a bitmask of VkSamplerCreateFlagBits describing additional parameters of the sampler.
      • magFilter

        public int magFilter()
        a VkFilter value specifying the magnification filter to apply to lookups.
      • minFilter

        public int minFilter()
        a VkFilter value specifying the minification filter to apply to lookups.
      • mipmapMode

        public int mipmapMode()
        a VkSamplerMipmapMode value specifying the mipmap filter to apply to lookups.
      • addressModeU

        public int addressModeU()
        a VkSamplerAddressMode value specifying the addressing mode for U coordinates outside [0,1).
      • addressModeV

        public int addressModeV()
        a VkSamplerAddressMode value specifying the addressing mode for V coordinates outside [0,1).
      • addressModeW

        public int addressModeW()
        a VkSamplerAddressMode value specifying the addressing mode for W coordinates outside [0,1).
      • mipLodBias

        public float mipLodBias()
        the bias to be added to mipmap LOD (level-of-detail) calculation and bias provided by image sampling functions in SPIR-V, as described in the Level-of-Detail Operation section.
      • maxAnisotropy

        public float maxAnisotropy()
        the anisotropy value clamp used by the sampler when anisotropyEnable is TRUE. If anisotropyEnable is FALSE, maxAnisotropy is ignored.
      • compareEnable

        public boolean compareEnable()
        TRUE to enable comparison against a reference value during lookups, or FALSE otherwise.
        • Note: Some implementations will default to shader state if this member does not match.
      • compareOp

        public int compareOp()
        a VkCompareOp value specifying the comparison function to apply to fetched data before filtering as described in the Depth Compare Operation section.
      • borderColor

        public int borderColor()
        a VkBorderColor value specifying the predefined border color to use.
      • unnormalizedCoordinates

        public boolean unnormalizedCoordinates()
        controls whether to use unnormalized or normalized texel coordinates to address texels of the image. When set to TRUE, the range of the image coordinates used to lookup the texel is in the range of zero to the image size in each dimension. When set to FALSE the range of image coordinates is zero to one.

        When unnormalizedCoordinates is TRUE, images the sampler is used with in the shader have the following requirements:

        When unnormalizedCoordinates is TRUE, image built-in functions in the shader that use the sampler have the following requirements:

        • The functions must not use projection.
        • The functions must not use offsets.
      • set

        public VkSamplerCreateInfo set​(int sType,
                                       long pNext,
                                       int flags,
                                       int magFilter,
                                       int minFilter,
                                       int mipmapMode,
                                       int addressModeU,
                                       int addressModeV,
                                       int addressModeW,
                                       float mipLodBias,
                                       boolean anisotropyEnable,
                                       float maxAnisotropy,
                                       boolean compareEnable,
                                       int compareOp,
                                       float minLod,
                                       float maxLod,
                                       int borderColor,
                                       boolean unnormalizedCoordinates)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

        @Nullable
        public static VkSamplerCreateInfo createSafe​(long address)
        Like create, but returns null if address is NULL.
      • mallocStack

        @Deprecated
        public static VkSamplerCreateInfo mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static VkSamplerCreateInfo callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

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

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

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

        public static VkSamplerCreateInfo.Buffer calloc​(int capacity,
                                                        org.lwjgl.system.MemoryStack stack)
        Returns a new VkSamplerCreateInfo.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
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nmagFilter

        public static int nmagFilter​(long struct)
        Unsafe version of magFilter().
      • nminFilter

        public static int nminFilter​(long struct)
        Unsafe version of minFilter().
      • nmipmapMode

        public static int nmipmapMode​(long struct)
        Unsafe version of mipmapMode().
      • naddressModeU

        public static int naddressModeU​(long struct)
        Unsafe version of addressModeU().
      • naddressModeV

        public static int naddressModeV​(long struct)
        Unsafe version of addressModeV().
      • naddressModeW

        public static int naddressModeW​(long struct)
        Unsafe version of addressModeW().
      • nmipLodBias

        public static float nmipLodBias​(long struct)
        Unsafe version of mipLodBias().
      • nanisotropyEnable

        public static int nanisotropyEnable​(long struct)
        Unsafe version of anisotropyEnable().
      • nmaxAnisotropy

        public static float nmaxAnisotropy​(long struct)
        Unsafe version of maxAnisotropy().
      • ncompareEnable

        public static int ncompareEnable​(long struct)
        Unsafe version of compareEnable().
      • ncompareOp

        public static int ncompareOp​(long struct)
        Unsafe version of compareOp().
      • nminLod

        public static float nminLod​(long struct)
        Unsafe version of minLod().
      • nmaxLod

        public static float nmaxLod​(long struct)
        Unsafe version of maxLod().
      • nborderColor

        public static int nborderColor​(long struct)
        Unsafe version of borderColor().
      • nunnormalizedCoordinates

        public static int nunnormalizedCoordinates​(long struct)
        Unsafe version of unnormalizedCoordinates().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nmagFilter

        public static void nmagFilter​(long struct,
                                      int value)
        Unsafe version of magFilter.
      • nminFilter

        public static void nminFilter​(long struct,
                                      int value)
        Unsafe version of minFilter.
      • nmipmapMode

        public static void nmipmapMode​(long struct,
                                       int value)
        Unsafe version of mipmapMode.
      • naddressModeU

        public static void naddressModeU​(long struct,
                                         int value)
        Unsafe version of addressModeU.
      • naddressModeV

        public static void naddressModeV​(long struct,
                                         int value)
        Unsafe version of addressModeV.
      • naddressModeW

        public static void naddressModeW​(long struct,
                                         int value)
        Unsafe version of addressModeW.
      • nmipLodBias

        public static void nmipLodBias​(long struct,
                                       float value)
        Unsafe version of mipLodBias.
      • nanisotropyEnable

        public static void nanisotropyEnable​(long struct,
                                             int value)
        Unsafe version of anisotropyEnable.
      • nmaxAnisotropy

        public static void nmaxAnisotropy​(long struct,
                                          float value)
        Unsafe version of maxAnisotropy.
      • ncompareEnable

        public static void ncompareEnable​(long struct,
                                          int value)
        Unsafe version of compareEnable.
      • ncompareOp

        public static void ncompareOp​(long struct,
                                      int value)
        Unsafe version of compareOp.
      • nminLod

        public static void nminLod​(long struct,
                                   float value)
        Unsafe version of minLod.
      • nmaxLod

        public static void nmaxLod​(long struct,
                                   float value)
        Unsafe version of maxLod.
      • nborderColor

        public static void nborderColor​(long struct,
                                        int value)
        Unsafe version of borderColor.
      • nunnormalizedCoordinates

        public static void nunnormalizedCoordinates​(long struct,
                                                    int value)
        Unsafe version of unnormalizedCoordinates.