Package org.lwjgl.util.spvc
Class SpvcMslConstexprSampler
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.spvc.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.NativeResourceLayout
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 Classes Modifier and Type Class Description static classSpvcMslConstexprSampler.BufferAn array ofSpvcMslConstexprSamplerstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intANISOTROPY_ENABLE
BORDER_COLOR
COMPARE_ENABLE
COMPARE_FUNC
COORD
LOD_CLAMP_ENABLE
LOD_CLAMP_MAX
LOD_CLAMP_MIN
MAG_FILTER
MAX_ANISOTROPY
MIN_FILTER
MIP_FILTER
R_ADDRESS
S_ADDRESSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intT_ADDRESSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description SpvcMslConstexprSampler(java.nio.ByteBuffer container)Creates aSpvcMslConstexprSamplerinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleananisotropy_enable()SpvcMslConstexprSampleranisotropy_enable(boolean value)Sets the specified value to theanisotropy_enablefield.intborder_color()SpvcMslConstexprSamplerborder_color(int value)Sets the specified value to theborder_colorfield.static SpvcMslConstexprSamplercalloc()Returns a newSpvcMslConstexprSamplerinstance allocated withmemCalloc.static SpvcMslConstexprSampler.Buffercalloc(int capacity)Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withmemCalloc.static SpvcMslConstexprSampler.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslConstexprSampler.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcMslConstexprSamplercalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslConstexprSamplerinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleancompare_enable()SpvcMslConstexprSamplercompare_enable(boolean value)Sets the specified value to thecompare_enablefield.intcompare_func()SpvcMslConstexprSamplercompare_func(int value)Sets the specified value to thecompare_funcfield.intcoord()SpvcMslConstexprSamplercoord(int value)Sets the specified value to thecoordfield.static SpvcMslConstexprSamplercreate()Returns a newSpvcMslConstexprSamplerinstance allocated withBufferUtils.static SpvcMslConstexprSampler.Buffercreate(int capacity)Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withBufferUtils.static SpvcMslConstexprSamplercreate(long address)Returns a newSpvcMslConstexprSamplerinstance for the specified memory address.static SpvcMslConstexprSampler.Buffercreate(long address, int capacity)Create aSpvcMslConstexprSampler.Bufferinstance at the specified memory.static SpvcMslConstexprSamplercreateSafe(long address)static SpvcMslConstexprSampler.BuffercreateSafe(long address, int capacity)booleanlod_clamp_enable()SpvcMslConstexprSamplerlod_clamp_enable(boolean value)Sets the specified value to thelod_clamp_enablefield.floatlod_clamp_max()SpvcMslConstexprSamplerlod_clamp_max(float value)Sets the specified value to thelod_clamp_maxfield.floatlod_clamp_min()SpvcMslConstexprSamplerlod_clamp_min(float value)Sets the specified value to thelod_clamp_minfield.intmag_filter()SpvcMslConstexprSamplermag_filter(int value)Sets the specified value to themag_filterfield.static SpvcMslConstexprSamplermalloc()Returns a newSpvcMslConstexprSamplerinstance allocated withmemAlloc.static SpvcMslConstexprSampler.Buffermalloc(int capacity)Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withmemAlloc.static SpvcMslConstexprSampler.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslConstexprSampler.Bufferinstance allocated on the specifiedMemoryStack.static SpvcMslConstexprSamplermalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcMslConstexprSamplerinstance allocated on the specifiedMemoryStack.intmax_anisotropy()SpvcMslConstexprSamplermax_anisotropy(int value)Sets the specified value to themax_anisotropyfield.intmin_filter()SpvcMslConstexprSamplermin_filter(int value)Sets the specified value to themin_filterfield.intmip_filter()SpvcMslConstexprSamplermip_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()SpvcMslConstexprSamplerr_address(int value)Sets the specified value to ther_addressfield.ints_address()SpvcMslConstexprSamplers_address(int value)Sets the specified value to thes_addressfield.SpvcMslConstexprSamplerset(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.SpvcMslConstexprSamplerset(SpvcMslConstexprSampler src)Copies the specified struct data to this struct.intsizeof()intt_address()SpvcMslConstexprSamplert_address(int value)Sets the specified value to thet_addressfield.
-
-
-
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 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public SpvcMslConstexprSampler coord(int value)
Sets the specified value to thecoordfield.
-
min_filter
public SpvcMslConstexprSampler min_filter(int value)
Sets the specified value to themin_filterfield.
-
mag_filter
public SpvcMslConstexprSampler mag_filter(int value)
Sets the specified value to themag_filterfield.
-
mip_filter
public SpvcMslConstexprSampler mip_filter(int value)
Sets the specified value to themip_filterfield.
-
s_address
public SpvcMslConstexprSampler s_address(int value)
Sets the specified value to thes_addressfield.
-
t_address
public SpvcMslConstexprSampler t_address(int value)
Sets the specified value to thet_addressfield.
-
r_address
public SpvcMslConstexprSampler r_address(int value)
Sets the specified value to ther_addressfield.
-
compare_func
public SpvcMslConstexprSampler compare_func(int value)
Sets the specified value to thecompare_funcfield.
-
border_color
public SpvcMslConstexprSampler border_color(int value)
Sets the specified value to theborder_colorfield.
-
lod_clamp_min
public SpvcMslConstexprSampler lod_clamp_min(float value)
Sets the specified value to thelod_clamp_minfield.
-
lod_clamp_max
public SpvcMslConstexprSampler lod_clamp_max(float value)
Sets the specified value to thelod_clamp_maxfield.
-
max_anisotropy
public SpvcMslConstexprSampler max_anisotropy(int value)
Sets the specified value to themax_anisotropyfield.
-
compare_enable
public SpvcMslConstexprSampler compare_enable(boolean value)
Sets the specified value to thecompare_enablefield.
-
lod_clamp_enable
public SpvcMslConstexprSampler lod_clamp_enable(boolean value)
Sets the specified value to thelod_clamp_enablefield.
-
anisotropy_enable
public SpvcMslConstexprSampler anisotropy_enable(boolean value)
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
public SpvcMslConstexprSampler set(SpvcMslConstexprSampler src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SpvcMslConstexprSampler malloc()
Returns a newSpvcMslConstexprSamplerinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpvcMslConstexprSampler calloc()
Returns a newSpvcMslConstexprSamplerinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpvcMslConstexprSampler create()
Returns a newSpvcMslConstexprSamplerinstance allocated withBufferUtils.
-
create
public static SpvcMslConstexprSampler create(long address)
Returns a newSpvcMslConstexprSamplerinstance for the specified memory address.
-
createSafe
@Nullable public static SpvcMslConstexprSampler createSafe(long address)
-
malloc
public static SpvcMslConstexprSampler.Buffer malloc(int capacity)
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpvcMslConstexprSampler.Buffer calloc(int capacity)
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcMslConstexprSampler.Buffer create(int capacity)
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcMslConstexprSampler.Buffer create(long address, int capacity)
Create aSpvcMslConstexprSampler.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpvcMslConstexprSampler.Buffer createSafe(long address, int capacity)
-
malloc
public static SpvcMslConstexprSampler malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslConstexprSamplerinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SpvcMslConstexprSampler calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslConstexprSamplerinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SpvcMslConstexprSampler.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SpvcMslConstexprSampler.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcMslConstexprSampler.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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.
-
-