Package org.lwjgl.util.spvc
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;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSpvcMslConstexprSampler
(ByteBuffer container) Creates aSpvcMslConstexprSampler
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionboolean
anisotropy_enable
(boolean value) Sets the specified value to theanisotropy_enable
field.int
border_color
(int value) Sets the specified value to theborder_color
field.static SpvcMslConstexprSampler
calloc()
Returns a newSpvcMslConstexprSampler
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSpvcMslConstexprSampler.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSpvcMslConstexprSampler.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SpvcMslConstexprSampler
calloc
(MemoryStack stack) Returns a newSpvcMslConstexprSampler
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.boolean
compare_enable
(boolean value) Sets the specified value to thecompare_enable
field.int
compare_func
(int value) Sets the specified value to thecompare_func
field.int
coord()
coord
(int value) Sets the specified value to thecoord
field.static SpvcMslConstexprSampler
create()
Returns a newSpvcMslConstexprSampler
instance allocated withBufferUtils
.create
(int capacity) Returns a newSpvcMslConstexprSampler.Buffer
instance allocated withBufferUtils
.static SpvcMslConstexprSampler
create
(long address) Returns a newSpvcMslConstexprSampler
instance for the specified memory address.create
(long address, int capacity) Create aSpvcMslConstexprSampler.Buffer
instance at the specified memory.static @Nullable SpvcMslConstexprSampler
createSafe
(long address) static @Nullable SpvcMslConstexprSampler.Buffer
createSafe
(long address, int capacity) boolean
lod_clamp_enable
(boolean value) Sets the specified value to thelod_clamp_enable
field.float
lod_clamp_max
(float value) Sets the specified value to thelod_clamp_max
field.float
lod_clamp_min
(float value) Sets the specified value to thelod_clamp_min
field.int
mag_filter
(int value) Sets the specified value to themag_filter
field.static SpvcMslConstexprSampler
malloc()
Returns a newSpvcMslConstexprSampler
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSpvcMslConstexprSampler.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSpvcMslConstexprSampler.Buffer
instance allocated on the specifiedMemoryStack
.static SpvcMslConstexprSampler
malloc
(MemoryStack stack) Returns a newSpvcMslConstexprSampler
instance allocated on the specifiedMemoryStack
.int
max_anisotropy
(int value) Sets the specified value to themax_anisotropy
field.int
min_filter
(int value) Sets the specified value to themin_filter
field.int
mip_filter
(int value) Sets the specified value to themip_filter
field.static boolean
nanisotropy_enable
(long struct) Unsafe version ofanisotropy_enable()
.static void
nanisotropy_enable
(long struct, boolean value) Unsafe version ofanisotropy_enable
.static int
nborder_color
(long struct) Unsafe version ofborder_color()
.static void
nborder_color
(long struct, int value) Unsafe version ofborder_color
.static boolean
ncompare_enable
(long struct) Unsafe version ofcompare_enable()
.static void
ncompare_enable
(long struct, boolean value) Unsafe version ofcompare_enable
.static int
ncompare_func
(long struct) Unsafe version ofcompare_func()
.static void
ncompare_func
(long struct, int value) Unsafe version ofcompare_func
.static int
ncoord
(long struct) Unsafe version ofcoord()
.static void
ncoord
(long struct, int value) Unsafe version ofcoord
.static boolean
nlod_clamp_enable
(long struct) Unsafe version oflod_clamp_enable()
.static void
nlod_clamp_enable
(long struct, boolean value) Unsafe version oflod_clamp_enable
.static float
nlod_clamp_max
(long struct) Unsafe version oflod_clamp_max()
.static void
nlod_clamp_max
(long struct, float value) Unsafe version oflod_clamp_max
.static float
nlod_clamp_min
(long struct) Unsafe version oflod_clamp_min()
.static void
nlod_clamp_min
(long struct, float value) Unsafe version oflod_clamp_min
.static int
nmag_filter
(long struct) Unsafe version ofmag_filter()
.static void
nmag_filter
(long struct, int value) Unsafe version ofmag_filter
.static int
nmax_anisotropy
(long struct) Unsafe version ofmax_anisotropy()
.static void
nmax_anisotropy
(long struct, int value) Unsafe version ofmax_anisotropy
.static int
nmin_filter
(long struct) Unsafe version ofmin_filter()
.static void
nmin_filter
(long struct, int value) Unsafe version ofmin_filter
.static int
nmip_filter
(long struct) Unsafe version ofmip_filter()
.static void
nmip_filter
(long struct, int value) Unsafe version ofmip_filter
.static int
nr_address
(long struct) Unsafe version ofr_address()
.static void
nr_address
(long struct, int value) Unsafe version ofr_address
.static int
ns_address
(long struct) Unsafe version ofs_address()
.static void
ns_address
(long struct, int value) Unsafe version ofs_address
.static int
nt_address
(long struct) Unsafe version oft_address()
.static void
nt_address
(long struct, int value) Unsafe version oft_address
.int
r_address
(int value) Sets the specified value to ther_address
field.int
s_address
(int value) Sets the specified value to thes_address
field.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.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
t_address
(int value) Sets the specified value to thet_address
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
COORD
public static final int COORDThe struct member offsets. -
MIN_FILTER
public static final int MIN_FILTERThe struct member offsets. -
MAG_FILTER
public static final int MAG_FILTERThe struct member offsets. -
MIP_FILTER
public static final int MIP_FILTERThe struct member offsets. -
S_ADDRESS
public static final int S_ADDRESSThe struct member offsets. -
T_ADDRESS
public static final int T_ADDRESSThe struct member offsets. -
R_ADDRESS
public static final int R_ADDRESSThe struct member offsets. -
COMPARE_FUNC
public static final int COMPARE_FUNCThe struct member offsets. -
BORDER_COLOR
public static final int BORDER_COLORThe struct member offsets. -
LOD_CLAMP_MIN
public static final int LOD_CLAMP_MINThe struct member offsets. -
LOD_CLAMP_MAX
public static final int LOD_CLAMP_MAXThe struct member offsets. -
MAX_ANISOTROPY
public static final int MAX_ANISOTROPYThe struct member offsets. -
COMPARE_ENABLE
public static final int COMPARE_ENABLEThe struct member offsets. -
LOD_CLAMP_ENABLE
public static final int LOD_CLAMP_ENABLEThe struct member offsets. -
ANISOTROPY_ENABLE
public static final int ANISOTROPY_ENABLEThe struct member offsets.
-
-
Constructor Details
-
SpvcMslConstexprSampler
Creates aSpvcMslConstexprSampler
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<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
Sets the specified value to thecoord
field. -
min_filter
Sets the specified value to themin_filter
field. -
mag_filter
Sets the specified value to themag_filter
field. -
mip_filter
Sets the specified value to themip_filter
field. -
s_address
Sets the specified value to thes_address
field. -
t_address
Sets the specified value to thet_address
field. -
r_address
Sets the specified value to ther_address
field. -
compare_func
Sets the specified value to thecompare_func
field. -
border_color
Sets the specified value to theborder_color
field. -
lod_clamp_min
Sets the specified value to thelod_clamp_min
field. -
lod_clamp_max
Sets the specified value to thelod_clamp_max
field. -
max_anisotropy
Sets the specified value to themax_anisotropy
field. -
compare_enable
Sets the specified value to thecompare_enable
field. -
lod_clamp_enable
Sets the specified value to thelod_clamp_enable
field. -
anisotropy_enable
Sets the specified value to theanisotropy_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
Returns a newSpvcMslConstexprSampler
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslConstexprSampler
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSpvcMslConstexprSampler
instance allocated withBufferUtils
. -
create
Returns a newSpvcMslConstexprSampler
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslConstexprSampler.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSpvcMslConstexprSampler.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSpvcMslConstexprSampler.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSpvcMslConstexprSampler.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslConstexprSampler
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslConstexprSampler
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSpvcMslConstexprSampler.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSpvcMslConstexprSampler.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ncoord
public static int ncoord(long struct) Unsafe version ofcoord()
. -
nmin_filter
public static int nmin_filter(long struct) Unsafe version ofmin_filter()
. -
nmag_filter
public static int nmag_filter(long struct) Unsafe version ofmag_filter()
. -
nmip_filter
public static int nmip_filter(long struct) Unsafe version ofmip_filter()
. -
ns_address
public static int ns_address(long struct) Unsafe version ofs_address()
. -
nt_address
public static int nt_address(long struct) Unsafe version oft_address()
. -
nr_address
public static int nr_address(long struct) Unsafe version ofr_address()
. -
ncompare_func
public static int ncompare_func(long struct) Unsafe version ofcompare_func()
. -
nborder_color
public static int nborder_color(long struct) Unsafe version ofborder_color()
. -
nlod_clamp_min
public static float nlod_clamp_min(long struct) Unsafe version oflod_clamp_min()
. -
nlod_clamp_max
public static float nlod_clamp_max(long struct) Unsafe version oflod_clamp_max()
. -
nmax_anisotropy
public static int nmax_anisotropy(long struct) Unsafe version ofmax_anisotropy()
. -
ncompare_enable
public static boolean ncompare_enable(long struct) Unsafe version ofcompare_enable()
. -
nlod_clamp_enable
public static boolean nlod_clamp_enable(long struct) Unsafe version oflod_clamp_enable()
. -
nanisotropy_enable
public static boolean nanisotropy_enable(long struct) Unsafe version ofanisotropy_enable()
. -
ncoord
public static void ncoord(long struct, int value) Unsafe version ofcoord
. -
nmin_filter
public static void nmin_filter(long struct, int value) Unsafe version ofmin_filter
. -
nmag_filter
public static void nmag_filter(long struct, int value) Unsafe version ofmag_filter
. -
nmip_filter
public static void nmip_filter(long struct, int value) Unsafe version ofmip_filter
. -
ns_address
public static void ns_address(long struct, int value) Unsafe version ofs_address
. -
nt_address
public static void nt_address(long struct, int value) Unsafe version oft_address
. -
nr_address
public static void nr_address(long struct, int value) Unsafe version ofr_address
. -
ncompare_func
public static void ncompare_func(long struct, int value) Unsafe version ofcompare_func
. -
nborder_color
public static void nborder_color(long struct, int value) Unsafe version ofborder_color
. -
nlod_clamp_min
public static void nlod_clamp_min(long struct, float value) Unsafe version oflod_clamp_min
. -
nlod_clamp_max
public static void nlod_clamp_max(long struct, float value) Unsafe version oflod_clamp_max
. -
nmax_anisotropy
public static void nmax_anisotropy(long struct, int value) Unsafe version ofmax_anisotropy
. -
ncompare_enable
public static void ncompare_enable(long struct, boolean value) Unsafe version ofcompare_enable
. -
nlod_clamp_enable
public static void nlod_clamp_enable(long struct, boolean value) Unsafe version oflod_clamp_enable
. -
nanisotropy_enable
public static void nanisotropy_enable(long struct, boolean value) Unsafe version ofanisotropy_enable
.
-