Package org.lwjgl.sdl
Class SDL_GPUSamplerCreateInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SDL_GPUSamplerCreateInfo
extends Struct<SDL_GPUSamplerCreateInfo>
implements NativeResource
struct SDL_GPUSamplerCreateInfo {
SDL_GPUFilter min_filter;
SDL_GPUFilter mag_filter;
SDL_GPUSamplerMipmapMode mipmap_mode;
SDL_GPUSamplerAddressMode address_mode_u;
SDL_GPUSamplerAddressMode address_mode_v;
SDL_GPUSamplerAddressMode address_mode_w;
float mip_lod_bias;
float max_anisotropy;
SDL_GPUCompareOp compare_op;
float min_lod;
float max_lod;
bool enable_anisotropy;
bool enable_compare;
Uint8 padding1;
Uint8 padding2;
SDL_PropertiesID props;
}
-
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 member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionSDL_GPUSamplerCreateInfo
(ByteBuffer container) Creates aSDL_GPUSamplerCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
address_mode_u
(int value) Sets the specified value to theaddress_mode_u
field.int
address_mode_v
(int value) Sets the specified value to theaddress_mode_v
field.int
address_mode_w
(int value) Sets the specified value to theaddress_mode_w
field.static SDL_GPUSamplerCreateInfo
calloc()
Returns a newSDL_GPUSamplerCreateInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUSamplerCreateInfo
calloc
(MemoryStack stack) Returns a newSDL_GPUSamplerCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
compare_op
(int value) Sets the specified value to thecompare_op
field.static SDL_GPUSamplerCreateInfo
create()
Returns a newSDL_GPUSamplerCreateInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated withBufferUtils
.static SDL_GPUSamplerCreateInfo
create
(long address) Returns a newSDL_GPUSamplerCreateInfo
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPUSamplerCreateInfo.Buffer
instance at the specified memory.static @Nullable SDL_GPUSamplerCreateInfo
createSafe
(long address) static @Nullable SDL_GPUSamplerCreateInfo.Buffer
createSafe
(long address, int capacity) boolean
enable_anisotropy
(boolean value) Sets the specified value to theenable_anisotropy
field.boolean
enable_compare
(boolean value) Sets the specified value to theenable_compare
field.int
mag_filter
(int value) Sets the specified value to themag_filter
field.static SDL_GPUSamplerCreateInfo
malloc()
Returns a newSDL_GPUSamplerCreateInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_GPUSamplerCreateInfo
malloc
(MemoryStack stack) Returns a newSDL_GPUSamplerCreateInfo
instance allocated on the specifiedMemoryStack
.float
max_anisotropy
(float value) Sets the specified value to themax_anisotropy
field.float
max_lod()
max_lod
(float value) Sets the specified value to themax_lod
field.int
min_filter
(int value) Sets the specified value to themin_filter
field.float
min_lod()
min_lod
(float value) Sets the specified value to themin_lod
field.float
mip_lod_bias
(float value) Sets the specified value to themip_lod_bias
field.int
mipmap_mode
(int value) Sets the specified value to themipmap_mode
field.static int
naddress_mode_u
(long struct) Unsafe version ofaddress_mode_u()
.static void
naddress_mode_u
(long struct, int value) Unsafe version ofaddress_mode_u
.static int
naddress_mode_v
(long struct) Unsafe version ofaddress_mode_v()
.static void
naddress_mode_v
(long struct, int value) Unsafe version ofaddress_mode_v
.static int
naddress_mode_w
(long struct) Unsafe version ofaddress_mode_w()
.static void
naddress_mode_w
(long struct, int value) Unsafe version ofaddress_mode_w
.static int
ncompare_op
(long struct) Unsafe version ofcompare_op()
.static void
ncompare_op
(long struct, int value) Unsafe version ofcompare_op
.static boolean
nenable_anisotropy
(long struct) Unsafe version ofenable_anisotropy()
.static void
nenable_anisotropy
(long struct, boolean value) Unsafe version ofenable_anisotropy
.static boolean
nenable_compare
(long struct) Unsafe version ofenable_compare()
.static void
nenable_compare
(long struct, boolean value) Unsafe version ofenable_compare
.static int
nmag_filter
(long struct) Unsafe version ofmag_filter()
.static void
nmag_filter
(long struct, int value) Unsafe version ofmag_filter
.static float
nmax_anisotropy
(long struct) Unsafe version ofmax_anisotropy()
.static void
nmax_anisotropy
(long struct, float value) Unsafe version ofmax_anisotropy
.static float
nmax_lod
(long struct) Unsafe version ofmax_lod()
.static void
nmax_lod
(long struct, float value) Unsafe version ofmax_lod
.static int
nmin_filter
(long struct) Unsafe version ofmin_filter()
.static void
nmin_filter
(long struct, int value) Unsafe version ofmin_filter
.static float
nmin_lod
(long struct) Unsafe version ofmin_lod()
.static void
nmin_lod
(long struct, float value) Unsafe version ofmin_lod
.static float
nmip_lod_bias
(long struct) Unsafe version ofmip_lod_bias()
.static void
nmip_lod_bias
(long struct, float value) Unsafe version ofmip_lod_bias
.static int
nmipmap_mode
(long struct) Unsafe version ofmipmap_mode()
.static void
nmipmap_mode
(long struct, int value) Unsafe version ofmipmap_mode
.static byte
npadding1
(long struct) static void
npadding1
(long struct, byte value) static byte
npadding2
(long struct) static void
npadding2
(long struct, byte value) static int
nprops
(long struct) Unsafe version ofprops()
.static void
nprops
(long struct, int value) Unsafe version ofprops
.int
props()
props
(int value) Sets the specified value to theprops
field.set
(int min_filter, int mag_filter, int mipmap_mode, int address_mode_u, int address_mode_v, int address_mode_w, float mip_lod_bias, float max_anisotropy, int compare_op, float min_lod, float max_lod, boolean enable_anisotropy, boolean enable_compare, int props) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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. -
MIN_FILTER
public static final int MIN_FILTERThe struct member offsets. -
MAG_FILTER
public static final int MAG_FILTERThe struct member offsets. -
MIPMAP_MODE
public static final int MIPMAP_MODEThe struct member offsets. -
ADDRESS_MODE_U
public static final int ADDRESS_MODE_UThe struct member offsets. -
ADDRESS_MODE_V
public static final int ADDRESS_MODE_VThe struct member offsets. -
ADDRESS_MODE_W
public static final int ADDRESS_MODE_WThe struct member offsets. -
MIP_LOD_BIAS
public static final int MIP_LOD_BIASThe struct member offsets. -
MAX_ANISOTROPY
public static final int MAX_ANISOTROPYThe struct member offsets. -
COMPARE_OP
public static final int COMPARE_OPThe struct member offsets. -
MIN_LOD
public static final int MIN_LODThe struct member offsets. -
MAX_LOD
public static final int MAX_LODThe struct member offsets. -
ENABLE_ANISOTROPY
public static final int ENABLE_ANISOTROPYThe struct member offsets. -
ENABLE_COMPARE
public static final int ENABLE_COMPAREThe struct member offsets. -
PADDING1
public static final int PADDING1The struct member offsets. -
PADDING2
public static final int PADDING2The struct member offsets. -
PROPS
public static final int PROPSThe struct member offsets.
-
-
Constructor Details
-
SDL_GPUSamplerCreateInfo
Creates aSDL_GPUSamplerCreateInfo
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<SDL_GPUSamplerCreateInfo>
-
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.
-
mipmap_mode
public int mipmap_mode()- Returns:
- the value of the
mipmap_mode
field.
-
address_mode_u
public int address_mode_u()- Returns:
- the value of the
address_mode_u
field.
-
address_mode_v
public int address_mode_v()- Returns:
- the value of the
address_mode_v
field.
-
address_mode_w
public int address_mode_w()- Returns:
- the value of the
address_mode_w
field.
-
mip_lod_bias
public float mip_lod_bias()- Returns:
- the value of the
mip_lod_bias
field.
-
max_anisotropy
public float max_anisotropy()- Returns:
- the value of the
max_anisotropy
field.
-
compare_op
public int compare_op()- Returns:
- the value of the
compare_op
field.
-
min_lod
public float min_lod()- Returns:
- the value of the
min_lod
field.
-
max_lod
public float max_lod()- Returns:
- the value of the
max_lod
field.
-
enable_anisotropy
public boolean enable_anisotropy()- Returns:
- the value of the
enable_anisotropy
field.
-
enable_compare
public boolean enable_compare()- Returns:
- the value of the
enable_compare
field.
-
props
public int props()- Returns:
- the value of the
props
field.
-
min_filter
Sets the specified value to themin_filter
field. -
mag_filter
Sets the specified value to themag_filter
field. -
mipmap_mode
Sets the specified value to themipmap_mode
field. -
address_mode_u
Sets the specified value to theaddress_mode_u
field. -
address_mode_v
Sets the specified value to theaddress_mode_v
field. -
address_mode_w
Sets the specified value to theaddress_mode_w
field. -
mip_lod_bias
Sets the specified value to themip_lod_bias
field. -
max_anisotropy
Sets the specified value to themax_anisotropy
field. -
compare_op
Sets the specified value to thecompare_op
field. -
min_lod
Sets the specified value to themin_lod
field. -
max_lod
Sets the specified value to themax_lod
field. -
enable_anisotropy
Sets the specified value to theenable_anisotropy
field. -
enable_compare
Sets the specified value to theenable_compare
field. -
props
Sets the specified value to theprops
field. -
set
public SDL_GPUSamplerCreateInfo set(int min_filter, int mag_filter, int mipmap_mode, int address_mode_u, int address_mode_v, int address_mode_w, float mip_lod_bias, float max_anisotropy, int compare_op, float min_lod, float max_lod, boolean enable_anisotropy, boolean enable_compare, int props) 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 newSDL_GPUSamplerCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUSamplerCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUSamplerCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUSamplerCreateInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUSamplerCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUSamplerCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUSamplerCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUSamplerCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
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()
. -
nmipmap_mode
public static int nmipmap_mode(long struct) Unsafe version ofmipmap_mode()
. -
naddress_mode_u
public static int naddress_mode_u(long struct) Unsafe version ofaddress_mode_u()
. -
naddress_mode_v
public static int naddress_mode_v(long struct) Unsafe version ofaddress_mode_v()
. -
naddress_mode_w
public static int naddress_mode_w(long struct) Unsafe version ofaddress_mode_w()
. -
nmip_lod_bias
public static float nmip_lod_bias(long struct) Unsafe version ofmip_lod_bias()
. -
nmax_anisotropy
public static float nmax_anisotropy(long struct) Unsafe version ofmax_anisotropy()
. -
ncompare_op
public static int ncompare_op(long struct) Unsafe version ofcompare_op()
. -
nmin_lod
public static float nmin_lod(long struct) Unsafe version ofmin_lod()
. -
nmax_lod
public static float nmax_lod(long struct) Unsafe version ofmax_lod()
. -
nenable_anisotropy
public static boolean nenable_anisotropy(long struct) Unsafe version ofenable_anisotropy()
. -
nenable_compare
public static boolean nenable_compare(long struct) Unsafe version ofenable_compare()
. -
npadding1
public static byte npadding1(long struct) -
npadding2
public static byte npadding2(long struct) -
nprops
public static int nprops(long struct) Unsafe version ofprops()
. -
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
. -
nmipmap_mode
public static void nmipmap_mode(long struct, int value) Unsafe version ofmipmap_mode
. -
naddress_mode_u
public static void naddress_mode_u(long struct, int value) Unsafe version ofaddress_mode_u
. -
naddress_mode_v
public static void naddress_mode_v(long struct, int value) Unsafe version ofaddress_mode_v
. -
naddress_mode_w
public static void naddress_mode_w(long struct, int value) Unsafe version ofaddress_mode_w
. -
nmip_lod_bias
public static void nmip_lod_bias(long struct, float value) Unsafe version ofmip_lod_bias
. -
nmax_anisotropy
public static void nmax_anisotropy(long struct, float value) Unsafe version ofmax_anisotropy
. -
ncompare_op
public static void ncompare_op(long struct, int value) Unsafe version ofcompare_op
. -
nmin_lod
public static void nmin_lod(long struct, float value) Unsafe version ofmin_lod
. -
nmax_lod
public static void nmax_lod(long struct, float value) Unsafe version ofmax_lod
. -
nenable_anisotropy
public static void nenable_anisotropy(long struct, boolean value) Unsafe version ofenable_anisotropy
. -
nenable_compare
public static void nenable_compare(long struct, boolean value) Unsafe version ofenable_compare
. -
npadding1
public static void npadding1(long struct, byte value) -
npadding2
public static void npadding2(long struct, byte value) -
nprops
public static void nprops(long struct, int value) Unsafe version ofprops
.
-