Class SpvcMslConstexprSampler

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class SpvcMslConstexprSampler extends Struct<SpvcMslConstexprSampler> implements NativeResource

 struct spvc_msl_constexpr_sampler {
     spvc_msl_sampler_coord coord;
     spvc_msl_sampler_filter min_filter;
     spvc_msl_sampler_filter mag_filter;
     spvc_msl_sampler_mip_filter mip_filter;
     spvc_msl_sampler_address s_address;
     spvc_msl_sampler_address t_address;
     spvc_msl_sampler_address r_address;
     spvc_msl_sampler_compare_func compare_func;
     spvc_msl_sampler_border_color border_color;
     float lod_clamp_min;
     float lod_clamp_max;
     int max_anisotropy;
     spvc_bool compare_enable;
     spvc_bool lod_clamp_enable;
     spvc_bool anisotropy_enable;
 }
  • Field Details

    • SIZEOF

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

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

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

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

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

      public static final int MIP_FILTER
      The struct member offsets.
    • S_ADDRESS

      public static final int S_ADDRESS
      The struct member offsets.
    • T_ADDRESS

      public static final int T_ADDRESS
      The struct member offsets.
    • R_ADDRESS

      public static final int R_ADDRESS
      The struct member offsets.
    • COMPARE_FUNC

      public static final int COMPARE_FUNC
      The struct member offsets.
    • BORDER_COLOR

      public static final int BORDER_COLOR
      The struct member offsets.
    • LOD_CLAMP_MIN

      public static final int LOD_CLAMP_MIN
      The struct member offsets.
    • LOD_CLAMP_MAX

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

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

      public static final int COMPARE_ENABLE
      The struct member offsets.
    • LOD_CLAMP_ENABLE

      public static final int LOD_CLAMP_ENABLE
      The struct member offsets.
    • ANISOTROPY_ENABLE

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

    • SpvcMslConstexprSampler

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

      public int coord()
      Returns:
      the value of the coord field.
    • 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.
    • mip_filter

      public int mip_filter()
      Returns:
      the value of the mip_filter field.
    • s_address

      public int s_address()
      Returns:
      the value of the s_address field.
    • t_address

      public int t_address()
      Returns:
      the value of the t_address field.
    • r_address

      public int r_address()
      Returns:
      the value of the r_address field.
    • compare_func

      public int compare_func()
      Returns:
      the value of the compare_func field.
    • border_color

      public int border_color()
      Returns:
      the value of the border_color field.
    • lod_clamp_min

      public float lod_clamp_min()
      Returns:
      the value of the lod_clamp_min field.
    • lod_clamp_max

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

      public int max_anisotropy()
      Returns:
      the value of the max_anisotropy field.
    • compare_enable

      public boolean compare_enable()
      Returns:
      the value of the compare_enable field.
    • lod_clamp_enable

      public boolean lod_clamp_enable()
      Returns:
      the value of the lod_clamp_enable field.
    • anisotropy_enable

      public boolean anisotropy_enable()
      Returns:
      the value of the anisotropy_enable field.
    • coord

      public SpvcMslConstexprSampler coord(int value)
      Sets the specified value to the coord field.
    • min_filter

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

      public SpvcMslConstexprSampler mag_filter(int value)
      Sets the specified value to the mag_filter field.
    • mip_filter

      public SpvcMslConstexprSampler mip_filter(int value)
      Sets the specified value to the mip_filter field.
    • s_address

      public SpvcMslConstexprSampler s_address(int value)
      Sets the specified value to the s_address field.
    • t_address

      public SpvcMslConstexprSampler t_address(int value)
      Sets the specified value to the t_address field.
    • r_address

      public SpvcMslConstexprSampler r_address(int value)
      Sets the specified value to the r_address field.
    • compare_func

      public SpvcMslConstexprSampler compare_func(int value)
      Sets the specified value to the compare_func field.
    • border_color

      public SpvcMslConstexprSampler border_color(int value)
      Sets the specified value to the border_color field.
    • lod_clamp_min

      public SpvcMslConstexprSampler lod_clamp_min(float value)
      Sets the specified value to the lod_clamp_min field.
    • lod_clamp_max

      public SpvcMslConstexprSampler lod_clamp_max(float value)
      Sets the specified value to the lod_clamp_max field.
    • max_anisotropy

      public SpvcMslConstexprSampler max_anisotropy(int value)
      Sets the specified value to the max_anisotropy field.
    • compare_enable

      public SpvcMslConstexprSampler compare_enable(boolean value)
      Sets the specified value to the compare_enable field.
    • lod_clamp_enable

      public SpvcMslConstexprSampler lod_clamp_enable(boolean value)
      Sets the specified value to the lod_clamp_enable field.
    • anisotropy_enable

      public SpvcMslConstexprSampler anisotropy_enable(boolean value)
      Sets the specified value to the anisotropy_enable field.
    • set

      public SpvcMslConstexprSampler set(int coord, int min_filter, int mag_filter, int mip_filter, int s_address, int t_address, int r_address, int compare_func, int border_color, float lod_clamp_min, float lod_clamp_max, int max_anisotropy, boolean compare_enable, boolean lod_clamp_enable, boolean anisotropy_enable)
      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 SpvcMslConstexprSampler malloc()
      Returns a new SpvcMslConstexprSampler instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ncoord(long struct)
      Unsafe version of coord().
    • 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().
    • nmip_filter

      public static int nmip_filter(long struct)
      Unsafe version of mip_filter().
    • ns_address

      public static int ns_address(long struct)
      Unsafe version of s_address().
    • nt_address

      public static int nt_address(long struct)
      Unsafe version of t_address().
    • nr_address

      public static int nr_address(long struct)
      Unsafe version of r_address().
    • ncompare_func

      public static int ncompare_func(long struct)
      Unsafe version of compare_func().
    • nborder_color

      public static int nborder_color(long struct)
      Unsafe version of border_color().
    • nlod_clamp_min

      public static float nlod_clamp_min(long struct)
      Unsafe version of lod_clamp_min().
    • nlod_clamp_max

      public static float nlod_clamp_max(long struct)
      Unsafe version of lod_clamp_max().
    • nmax_anisotropy

      public static int nmax_anisotropy(long struct)
      Unsafe version of max_anisotropy().
    • ncompare_enable

      public static boolean ncompare_enable(long struct)
      Unsafe version of compare_enable().
    • nlod_clamp_enable

      public static boolean nlod_clamp_enable(long struct)
      Unsafe version of lod_clamp_enable().
    • nanisotropy_enable

      public static boolean nanisotropy_enable(long struct)
      Unsafe version of anisotropy_enable().
    • ncoord

      public static void ncoord(long struct, int value)
      Unsafe version of coord.
    • 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.
    • nmip_filter

      public static void nmip_filter(long struct, int value)
      Unsafe version of mip_filter.
    • ns_address

      public static void ns_address(long struct, int value)
      Unsafe version of s_address.
    • nt_address

      public static void nt_address(long struct, int value)
      Unsafe version of t_address.
    • nr_address

      public static void nr_address(long struct, int value)
      Unsafe version of r_address.
    • ncompare_func

      public static void ncompare_func(long struct, int value)
      Unsafe version of compare_func.
    • nborder_color

      public static void nborder_color(long struct, int value)
      Unsafe version of border_color.
    • nlod_clamp_min

      public static void nlod_clamp_min(long struct, float value)
      Unsafe version of lod_clamp_min.
    • nlod_clamp_max

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

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

      public static void ncompare_enable(long struct, boolean value)
      Unsafe version of compare_enable.
    • nlod_clamp_enable

      public static void nlod_clamp_enable(long struct, boolean value)
      Unsafe version of lod_clamp_enable.
    • nanisotropy_enable

      public static void nanisotropy_enable(long struct, boolean value)
      Unsafe version of anisotropy_enable.