Class VkSamplerCreateInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkSamplerCreateInfo extends Struct<VkSamplerCreateInfo> implements NativeResource

 struct VkSamplerCreateInfo {
     VkStructureType sType;
     void const * pNext;
     VkSamplerCreateFlags flags;
     VkFilter magFilter;
     VkFilter minFilter;
     VkSamplerMipmapMode mipmapMode;
     VkSamplerAddressMode addressModeU;
     VkSamplerAddressMode addressModeV;
     VkSamplerAddressMode addressModeW;
     float mipLodBias;
     VkBool32 anisotropyEnable;
     float maxAnisotropy;
     VkBool32 compareEnable;
     VkCompareOp compareOp;
     float minLod;
     float maxLod;
     VkBorderColor borderColor;
     VkBool32 unnormalizedCoordinates;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • MAGFILTER

      public static final int MAGFILTER
      The struct member offsets.
    • MINFILTER

      public static final int MINFILTER
      The struct member offsets.
    • MIPMAPMODE

      public static final int MIPMAPMODE
      The struct member offsets.
    • ADDRESSMODEU

      public static final int ADDRESSMODEU
      The struct member offsets.
    • ADDRESSMODEV

      public static final int ADDRESSMODEV
      The struct member offsets.
    • ADDRESSMODEW

      public static final int ADDRESSMODEW
      The struct member offsets.
    • MIPLODBIAS

      public static final int MIPLODBIAS
      The struct member offsets.
    • ANISOTROPYENABLE

      public static final int ANISOTROPYENABLE
      The struct member offsets.
    • MAXANISOTROPY

      public static final int MAXANISOTROPY
      The struct member offsets.
    • COMPAREENABLE

      public static final int COMPAREENABLE
      The struct member offsets.
    • COMPAREOP

      public static final int COMPAREOP
      The struct member offsets.
    • MINLOD

      public static final int MINLOD
      The struct member offsets.
    • MAXLOD

      public static final int MAXLOD
      The struct member offsets.
    • BORDERCOLOR

      public static final int BORDERCOLOR
      The struct member offsets.
    • UNNORMALIZEDCOORDINATES

      public static final int UNNORMALIZEDCOORDINATES
      The struct member offsets.
  • Constructor Details

    • VkSamplerCreateInfo

      public VkSamplerCreateInfo(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkSamplerCreateInfo>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • flags

      public int flags()
      Returns:
      the value of the flags field.
    • magFilter

      public int magFilter()
      Returns:
      the value of the magFilter field.
    • minFilter

      public int minFilter()
      Returns:
      the value of the minFilter field.
    • mipmapMode

      public int mipmapMode()
      Returns:
      the value of the mipmapMode field.
    • addressModeU

      public int addressModeU()
      Returns:
      the value of the addressModeU field.
    • addressModeV

      public int addressModeV()
      Returns:
      the value of the addressModeV field.
    • addressModeW

      public int addressModeW()
      Returns:
      the value of the addressModeW field.
    • mipLodBias

      public float mipLodBias()
      Returns:
      the value of the mipLodBias field.
    • anisotropyEnable

      public boolean anisotropyEnable()
      Returns:
      the value of the anisotropyEnable field.
    • maxAnisotropy

      public float maxAnisotropy()
      Returns:
      the value of the maxAnisotropy field.
    • compareEnable

      public boolean compareEnable()
      Returns:
      the value of the compareEnable field.
    • compareOp

      public int compareOp()
      Returns:
      the value of the compareOp field.
    • minLod

      public float minLod()
      Returns:
      the value of the minLod field.
    • maxLod

      public float maxLod()
      Returns:
      the value of the maxLod field.
    • borderColor

      public int borderColor()
      Returns:
      the value of the borderColor field.
    • unnormalizedCoordinates

      public boolean unnormalizedCoordinates()
      Returns:
      the value of the unnormalizedCoordinates field.
    • sType

      public VkSamplerCreateInfo sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkSamplerCreateInfo sType$Default()
      Sets the STRUCTURE_TYPE_SAMPLER_CREATE_INFO value to the sType field.
    • pNext

      public VkSamplerCreateInfo pNext(long value)
      Sets the specified value to the pNext field.
    • pNext

      Prepends the specified VkOpaqueCaptureDescriptorDataCreateInfoEXT value to the pNext chain.
    • pNext

      Prepends the specified VkSamplerBlockMatchWindowCreateInfoQCOM value to the pNext chain.
    • pNext

      Prepends the specified VkSamplerBorderColorComponentMappingCreateInfoEXT value to the pNext chain.
    • pNext

      Prepends the specified VkSamplerCubicWeightsCreateInfoQCOM value to the pNext chain.
    • pNext

      Prepends the specified VkSamplerCustomBorderColorCreateInfoEXT value to the pNext chain.
    • pNext

      Prepends the specified VkSamplerReductionModeCreateInfo value to the pNext chain.
    • pNext

      Prepends the specified VkSamplerReductionModeCreateInfoEXT value to the pNext chain.
    • pNext

      Prepends the specified VkSamplerYcbcrConversionInfo value to the pNext chain.
    • pNext

      Prepends the specified VkSamplerYcbcrConversionInfoKHR value to the pNext chain.
    • flags

      public VkSamplerCreateInfo flags(int value)
      Sets the specified value to the flags field.
    • magFilter

      public VkSamplerCreateInfo magFilter(int value)
      Sets the specified value to the magFilter field.
    • minFilter

      public VkSamplerCreateInfo minFilter(int value)
      Sets the specified value to the minFilter field.
    • mipmapMode

      public VkSamplerCreateInfo mipmapMode(int value)
      Sets the specified value to the mipmapMode field.
    • addressModeU

      public VkSamplerCreateInfo addressModeU(int value)
      Sets the specified value to the addressModeU field.
    • addressModeV

      public VkSamplerCreateInfo addressModeV(int value)
      Sets the specified value to the addressModeV field.
    • addressModeW

      public VkSamplerCreateInfo addressModeW(int value)
      Sets the specified value to the addressModeW field.
    • mipLodBias

      public VkSamplerCreateInfo mipLodBias(float value)
      Sets the specified value to the mipLodBias field.
    • anisotropyEnable

      public VkSamplerCreateInfo anisotropyEnable(boolean value)
      Sets the specified value to the anisotropyEnable field.
    • maxAnisotropy

      public VkSamplerCreateInfo maxAnisotropy(float value)
      Sets the specified value to the maxAnisotropy field.
    • compareEnable

      public VkSamplerCreateInfo compareEnable(boolean value)
      Sets the specified value to the compareEnable field.
    • compareOp

      public VkSamplerCreateInfo compareOp(int value)
      Sets the specified value to the compareOp field.
    • minLod

      public VkSamplerCreateInfo minLod(float value)
      Sets the specified value to the minLod field.
    • maxLod

      public VkSamplerCreateInfo maxLod(float value)
      Sets the specified value to the maxLod field.
    • borderColor

      public VkSamplerCreateInfo borderColor(int value)
      Sets the specified value to the borderColor field.
    • unnormalizedCoordinates

      public VkSamplerCreateInfo unnormalizedCoordinates(boolean value)
      Sets the specified value to the unnormalizedCoordinates field.
    • 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.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • 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

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

      public static VkSamplerCreateInfo.Buffer malloc(int capacity)
      Returns a new VkSamplerCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkSamplerCreateInfo.Buffer calloc(int capacity)
      Returns a new VkSamplerCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkSamplerCreateInfo.Buffer create(int capacity)
      Returns a new VkSamplerCreateInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkSamplerCreateInfo.Buffer create(long address, int capacity)
      Create a VkSamplerCreateInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkSamplerCreateInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkSamplerCreateInfo malloc(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(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, MemoryStack stack)
      Returns a new VkSamplerCreateInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkSamplerCreateInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkSamplerCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • 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.