Package org.lwjgl.sdl

Class SDL_GPUSamplerCreateInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SDL_GPUSamplerCreateInfo extends Struct<SDL_GPUSamplerCreateInfo> implements NativeResource

 struct SDL_GPUSamplerCreateInfo {
     SDL_GPUFilter min_filter;
     SDL_GPUFilter mag_filter;
     SDL_GPUSamplerMipmapMode mipmap_mode;
     SDL_GPUSamplerAddressMode address_mode_u;
     SDL_GPUSamplerAddressMode address_mode_v;
     SDL_GPUSamplerAddressMode address_mode_w;
     float mip_lod_bias;
     float max_anisotropy;
     SDL_GPUCompareOp compare_op;
     float min_lod;
     float max_lod;
     bool enable_anisotropy;
     bool enable_compare;
     Uint8 padding1;
     Uint8 padding2;
     SDL_PropertiesID props;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MIN_FILTER
      The struct member offsets.
    • MAG_FILTER

      public static final int MAG_FILTER
      The struct member offsets.
    • MIPMAP_MODE

      public static final int MIPMAP_MODE
      The struct member offsets.
    • ADDRESS_MODE_U

      public static final int ADDRESS_MODE_U
      The struct member offsets.
    • ADDRESS_MODE_V

      public static final int ADDRESS_MODE_V
      The struct member offsets.
    • ADDRESS_MODE_W

      public static final int ADDRESS_MODE_W
      The struct member offsets.
    • MIP_LOD_BIAS

      public static final int MIP_LOD_BIAS
      The struct member offsets.
    • MAX_ANISOTROPY

      public static final int MAX_ANISOTROPY
      The struct member offsets.
    • COMPARE_OP

      public static final int COMPARE_OP
      The struct member offsets.
    • MIN_LOD

      public static final int MIN_LOD
      The struct member offsets.
    • MAX_LOD

      public static final int MAX_LOD
      The struct member offsets.
    • ENABLE_ANISOTROPY

      public static final int ENABLE_ANISOTROPY
      The struct member offsets.
    • ENABLE_COMPARE

      public static final int ENABLE_COMPARE
      The struct member offsets.
    • PADDING1

      public static final int PADDING1
      The struct member offsets.
    • PADDING2

      public static final int PADDING2
      The struct member offsets.
    • PROPS

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

    • SDL_GPUSamplerCreateInfo

      public SDL_GPUSamplerCreateInfo(ByteBuffer container)
      Creates a SDL_GPUSamplerCreateInfo 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<SDL_GPUSamplerCreateInfo>
    • min_filter

      public int min_filter()
      Returns:
      the value of the min_filter field.
    • mag_filter

      public int mag_filter()
      Returns:
      the value of the mag_filter field.
    • mipmap_mode

      public int mipmap_mode()
      Returns:
      the value of the mipmap_mode field.
    • address_mode_u

      public int address_mode_u()
      Returns:
      the value of the address_mode_u field.
    • address_mode_v

      public int address_mode_v()
      Returns:
      the value of the address_mode_v field.
    • address_mode_w

      public int address_mode_w()
      Returns:
      the value of the address_mode_w field.
    • mip_lod_bias

      public float mip_lod_bias()
      Returns:
      the value of the mip_lod_bias field.
    • max_anisotropy

      public float max_anisotropy()
      Returns:
      the value of the max_anisotropy field.
    • compare_op

      public int compare_op()
      Returns:
      the value of the compare_op field.
    • min_lod

      public float min_lod()
      Returns:
      the value of the min_lod field.
    • max_lod

      public float max_lod()
      Returns:
      the value of the max_lod field.
    • enable_anisotropy

      public boolean enable_anisotropy()
      Returns:
      the value of the enable_anisotropy field.
    • enable_compare

      public boolean enable_compare()
      Returns:
      the value of the enable_compare field.
    • props

      public int props()
      Returns:
      the value of the props field.
    • min_filter

      public SDL_GPUSamplerCreateInfo min_filter(int value)
      Sets the specified value to the min_filter field.
    • mag_filter

      public SDL_GPUSamplerCreateInfo mag_filter(int value)
      Sets the specified value to the mag_filter field.
    • mipmap_mode

      public SDL_GPUSamplerCreateInfo mipmap_mode(int value)
      Sets the specified value to the mipmap_mode field.
    • address_mode_u

      public SDL_GPUSamplerCreateInfo address_mode_u(int value)
      Sets the specified value to the address_mode_u field.
    • address_mode_v

      public SDL_GPUSamplerCreateInfo address_mode_v(int value)
      Sets the specified value to the address_mode_v field.
    • address_mode_w

      public SDL_GPUSamplerCreateInfo address_mode_w(int value)
      Sets the specified value to the address_mode_w field.
    • mip_lod_bias

      public SDL_GPUSamplerCreateInfo mip_lod_bias(float value)
      Sets the specified value to the mip_lod_bias field.
    • max_anisotropy

      public SDL_GPUSamplerCreateInfo max_anisotropy(float value)
      Sets the specified value to the max_anisotropy field.
    • compare_op

      public SDL_GPUSamplerCreateInfo compare_op(int value)
      Sets the specified value to the compare_op field.
    • min_lod

      public SDL_GPUSamplerCreateInfo min_lod(float value)
      Sets the specified value to the min_lod field.
    • max_lod

      public SDL_GPUSamplerCreateInfo max_lod(float value)
      Sets the specified value to the max_lod field.
    • enable_anisotropy

      public SDL_GPUSamplerCreateInfo enable_anisotropy(boolean value)
      Sets the specified value to the enable_anisotropy field.
    • enable_compare

      public SDL_GPUSamplerCreateInfo enable_compare(boolean value)
      Sets the specified value to the enable_compare field.
    • props

      public SDL_GPUSamplerCreateInfo props(int value)
      Sets the specified value to the props field.
    • set

      public SDL_GPUSamplerCreateInfo set(int min_filter, int mag_filter, int mipmap_mode, int address_mode_u, int address_mode_v, int address_mode_w, float mip_lod_bias, float max_anisotropy, int compare_op, float min_lod, float max_lod, boolean enable_anisotropy, boolean enable_compare, int props)
      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 SDL_GPUSamplerCreateInfo malloc()
      Returns a new SDL_GPUSamplerCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static SDL_GPUSamplerCreateInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new SDL_GPUSamplerCreateInfo.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
    • nmin_filter

      public static int nmin_filter(long struct)
      Unsafe version of min_filter().
    • nmag_filter

      public static int nmag_filter(long struct)
      Unsafe version of mag_filter().
    • nmipmap_mode

      public static int nmipmap_mode(long struct)
      Unsafe version of mipmap_mode().
    • naddress_mode_u

      public static int naddress_mode_u(long struct)
      Unsafe version of address_mode_u().
    • naddress_mode_v

      public static int naddress_mode_v(long struct)
      Unsafe version of address_mode_v().
    • naddress_mode_w

      public static int naddress_mode_w(long struct)
      Unsafe version of address_mode_w().
    • nmip_lod_bias

      public static float nmip_lod_bias(long struct)
      Unsafe version of mip_lod_bias().
    • nmax_anisotropy

      public static float nmax_anisotropy(long struct)
      Unsafe version of max_anisotropy().
    • ncompare_op

      public static int ncompare_op(long struct)
      Unsafe version of compare_op().
    • nmin_lod

      public static float nmin_lod(long struct)
      Unsafe version of min_lod().
    • nmax_lod

      public static float nmax_lod(long struct)
      Unsafe version of max_lod().
    • nenable_anisotropy

      public static boolean nenable_anisotropy(long struct)
      Unsafe version of enable_anisotropy().
    • nenable_compare

      public static boolean nenable_compare(long struct)
      Unsafe version of enable_compare().
    • npadding1

      public static byte npadding1(long struct)
    • npadding2

      public static byte npadding2(long struct)
    • nprops

      public static int nprops(long struct)
      Unsafe version of props().
    • nmin_filter

      public static void nmin_filter(long struct, int value)
      Unsafe version of min_filter.
    • nmag_filter

      public static void nmag_filter(long struct, int value)
      Unsafe version of mag_filter.
    • nmipmap_mode

      public static void nmipmap_mode(long struct, int value)
      Unsafe version of mipmap_mode.
    • naddress_mode_u

      public static void naddress_mode_u(long struct, int value)
      Unsafe version of address_mode_u.
    • naddress_mode_v

      public static void naddress_mode_v(long struct, int value)
      Unsafe version of address_mode_v.
    • naddress_mode_w

      public static void naddress_mode_w(long struct, int value)
      Unsafe version of address_mode_w.
    • nmip_lod_bias

      public static void nmip_lod_bias(long struct, float value)
      Unsafe version of mip_lod_bias.
    • nmax_anisotropy

      public static void nmax_anisotropy(long struct, float value)
      Unsafe version of max_anisotropy.
    • ncompare_op

      public static void ncompare_op(long struct, int value)
      Unsafe version of compare_op.
    • nmin_lod

      public static void nmin_lod(long struct, float value)
      Unsafe version of min_lod.
    • nmax_lod

      public static void nmax_lod(long struct, float value)
      Unsafe version of max_lod.
    • nenable_anisotropy

      public static void nenable_anisotropy(long struct, boolean value)
      Unsafe version of enable_anisotropy.
    • nenable_compare

      public static void nenable_compare(long struct, boolean value)
      Unsafe version of enable_compare.
    • npadding1

      public static void npadding1(long struct, byte value)
    • npadding2

      public static void npadding2(long struct, byte value)
    • nprops

      public static void nprops(long struct, int value)
      Unsafe version of props.