Package org.lwjgl.sdl

Class SDL_GPUSamplerCreateInfo.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<SDL_GPUSamplerCreateInfo>, NativeResource, Pointer
Enclosing class:
SDL_GPUSamplerCreateInfo

public static class SDL_GPUSamplerCreateInfo.Buffer extends StructBuffer<SDL_GPUSamplerCreateInfo,SDL_GPUSamplerCreateInfo.Buffer> implements NativeResource
An array of SDL_GPUSamplerCreateInfo structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_GPUSamplerCreateInfo.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by SDL_GPUSamplerCreateInfo.SIZEOF, and its mark will be undefined.

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

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.Buffer min_filter(int value)
      Sets the specified value to the min_filter field.
    • mag_filter

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

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

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

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

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

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

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

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

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

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

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

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

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