Class SpvcMslConstexprSampler

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class SpvcMslConstexprSampler
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • COORD, MIN_FILTER, MAG_FILTER, MIP_FILTER, S_ADDRESS, T_ADDRESS, R_ADDRESS, COMPARE_FUNC, BORDER_COLOR, LOD_CLAMP_MIN, LOD_CLAMP_MAX, MAX_ANISOTROPY, COMPARE_ENABLE, LOD_CLAMP_ENABLE, ANISOTROPY_ENABLE

        The struct member offsets.
    • Constructor Detail

      • SpvcMslConstexprSampler

        public SpvcMslConstexprSampler​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • 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.
      • 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.
      • malloc

        public static SpvcMslConstexprSampler malloc​(org.lwjgl.system.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​(org.lwjgl.system.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
      • calloc

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