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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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 aSpvcMslConstexprSamplerinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbooleananisotropy_enable(boolean value) Sets the specified value to theanisotropy_enablefield.intborder_color(int value) Sets the specified value to theborder_colorfield.static SpvcMslConstexprSamplercalloc()Returns a newSpvcMslConstexprSamplerinstance allocated withmemCalloc.calloc(int capacity) Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSpvcMslConstexprSampler.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslConstexprSamplercalloc(MemoryStack stack) Returns a newSpvcMslConstexprSamplerinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleancompare_enable(boolean value) Sets the specified value to thecompare_enablefield.intcompare_func(int value) Sets the specified value to thecompare_funcfield.intcoord()coord(int value) Sets the specified value to thecoordfield.static SpvcMslConstexprSamplercreate()Returns a newSpvcMslConstexprSamplerinstance allocated withBufferUtils.create(int capacity) Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withBufferUtils.static SpvcMslConstexprSamplercreate(long address) Returns a newSpvcMslConstexprSamplerinstance for the specified memory address.create(long address, int capacity) Create aSpvcMslConstexprSampler.Bufferinstance at the specified memory.static @Nullable SpvcMslConstexprSamplercreateSafe(long address) static @Nullable SpvcMslConstexprSampler.BuffercreateSafe(long address, int capacity) booleanlod_clamp_enable(boolean value) Sets the specified value to thelod_clamp_enablefield.floatlod_clamp_max(float value) Sets the specified value to thelod_clamp_maxfield.floatlod_clamp_min(float value) Sets the specified value to thelod_clamp_minfield.intmag_filter(int value) Sets the specified value to themag_filterfield.static SpvcMslConstexprSamplermalloc()Returns a newSpvcMslConstexprSamplerinstance allocated withmemAlloc.malloc(int capacity) Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSpvcMslConstexprSampler.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslConstexprSamplermalloc(MemoryStack stack) Returns a newSpvcMslConstexprSamplerinstance allocated on the specifiedMemoryStack.intmax_anisotropy(int value) Sets the specified value to themax_anisotropyfield.intmin_filter(int value) Sets the specified value to themin_filterfield.intmip_filter(int value) Sets the specified value to themip_filterfield.static booleannanisotropy_enable(long struct) Unsafe version ofanisotropy_enable().static voidnanisotropy_enable(long struct, boolean value) Unsafe version ofanisotropy_enable.static intnborder_color(long struct) Unsafe version ofborder_color().static voidnborder_color(long struct, int value) Unsafe version ofborder_color.static booleanncompare_enable(long struct) Unsafe version ofcompare_enable().static voidncompare_enable(long struct, boolean value) Unsafe version ofcompare_enable.static intncompare_func(long struct) Unsafe version ofcompare_func().static voidncompare_func(long struct, int value) Unsafe version ofcompare_func.static intncoord(long struct) Unsafe version ofcoord().static voidncoord(long struct, int value) Unsafe version ofcoord.static booleannlod_clamp_enable(long struct) Unsafe version oflod_clamp_enable().static voidnlod_clamp_enable(long struct, boolean value) Unsafe version oflod_clamp_enable.static floatnlod_clamp_max(long struct) Unsafe version oflod_clamp_max().static voidnlod_clamp_max(long struct, float value) Unsafe version oflod_clamp_max.static floatnlod_clamp_min(long struct) Unsafe version oflod_clamp_min().static voidnlod_clamp_min(long struct, float value) Unsafe version oflod_clamp_min.static intnmag_filter(long struct) Unsafe version ofmag_filter().static voidnmag_filter(long struct, int value) Unsafe version ofmag_filter.static intnmax_anisotropy(long struct) Unsafe version ofmax_anisotropy().static voidnmax_anisotropy(long struct, int value) Unsafe version ofmax_anisotropy.static intnmin_filter(long struct) Unsafe version ofmin_filter().static voidnmin_filter(long struct, int value) Unsafe version ofmin_filter.static intnmip_filter(long struct) Unsafe version ofmip_filter().static voidnmip_filter(long struct, int value) Unsafe version ofmip_filter.static intnr_address(long struct) Unsafe version ofr_address().static voidnr_address(long struct, int value) Unsafe version ofr_address.static intns_address(long struct) Unsafe version ofs_address().static voidns_address(long struct, int value) Unsafe version ofs_address.static intnt_address(long struct) Unsafe version oft_address().static voidnt_address(long struct, int value) Unsafe version oft_address.intr_address(int value) Sets the specified value to ther_addressfield.ints_address(int value) Sets the specified value to thes_addressfield.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.intsizeof()Returnssizeof(struct).intt_address(int value) Sets the specified value to thet_addressfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aSpvcMslConstexprSamplerinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SpvcMslConstexprSampler>
-
coord
public int coord()- Returns:
- the value of the
coordfield.
-
min_filter
public int min_filter()- Returns:
- the value of the
min_filterfield.
-
mag_filter
public int mag_filter()- Returns:
- the value of the
mag_filterfield.
-
mip_filter
public int mip_filter()- Returns:
- the value of the
mip_filterfield.
-
s_address
public int s_address()- Returns:
- the value of the
s_addressfield.
-
t_address
public int t_address()- Returns:
- the value of the
t_addressfield.
-
r_address
public int r_address()- Returns:
- the value of the
r_addressfield.
-
compare_func
public int compare_func()- Returns:
- the value of the
compare_funcfield.
-
border_color
public int border_color()- Returns:
- the value of the
border_colorfield.
-
lod_clamp_min
public float lod_clamp_min()- Returns:
- the value of the
lod_clamp_minfield.
-
lod_clamp_max
public float lod_clamp_max()- Returns:
- the value of the
lod_clamp_maxfield.
-
max_anisotropy
public int max_anisotropy()- Returns:
- the value of the
max_anisotropyfield.
-
compare_enable
public boolean compare_enable()- Returns:
- the value of the
compare_enablefield.
-
lod_clamp_enable
public boolean lod_clamp_enable()- Returns:
- the value of the
lod_clamp_enablefield.
-
anisotropy_enable
public boolean anisotropy_enable()- Returns:
- the value of the
anisotropy_enablefield.
-
coord
Sets the specified value to thecoordfield. -
min_filter
Sets the specified value to themin_filterfield. -
mag_filter
Sets the specified value to themag_filterfield. -
mip_filter
Sets the specified value to themip_filterfield. -
s_address
Sets the specified value to thes_addressfield. -
t_address
Sets the specified value to thet_addressfield. -
r_address
Sets the specified value to ther_addressfield. -
compare_func
Sets the specified value to thecompare_funcfield. -
border_color
Sets the specified value to theborder_colorfield. -
lod_clamp_min
Sets the specified value to thelod_clamp_minfield. -
lod_clamp_max
Sets the specified value to thelod_clamp_maxfield. -
max_anisotropy
Sets the specified value to themax_anisotropyfield. -
compare_enable
Sets the specified value to thecompare_enablefield. -
lod_clamp_enable
Sets the specified value to thelod_clamp_enablefield. -
anisotropy_enable
Sets the specified value to theanisotropy_enablefield. -
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 newSpvcMslConstexprSamplerinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcMslConstexprSamplerinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcMslConstexprSamplerinstance allocated withBufferUtils. -
create
Returns a newSpvcMslConstexprSamplerinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcMslConstexprSampler.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcMslConstexprSamplerinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcMslConstexprSamplerinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated on the specifiedMemoryStackand 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.
-