Package org.lwjgl.sdl
Class SDL_GPUTextureCreateInfo
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class SDL_GPUTextureCreateInfo
extends Struct<SDL_GPUTextureCreateInfo>
implements NativeResource
struct SDL_GPUTextureCreateInfo {
SDL_GPUTextureType type;
SDL_GPUTextureFormat format;
SDL_GPUTextureUsageFlags usage;
Uint32 width;
Uint32 height;
Uint32 layer_count_or_depth;
Uint32 num_levels;
SDL_GPUSampleCount sample_count;
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 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 size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.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
ConstructorsConstructorDescriptionSDL_GPUTextureCreateInfo
(ByteBuffer container) Creates aSDL_GPUTextureCreateInfo
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUTextureCreateInfo
calloc()
Returns a newSDL_GPUTextureCreateInfo
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUTextureCreateInfo
calloc
(MemoryStack stack) Returns a newSDL_GPUTextureCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static SDL_GPUTextureCreateInfo
create()
Returns a newSDL_GPUTextureCreateInfo
instance allocated withBufferUtils
.create
(int capacity) Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated withBufferUtils
.static SDL_GPUTextureCreateInfo
create
(long address) Returns a newSDL_GPUTextureCreateInfo
instance for the specified memory address.create
(long address, int capacity) Create aSDL_GPUTextureCreateInfo.Buffer
instance at the specified memory.static @Nullable SDL_GPUTextureCreateInfo
createSafe
(long address) static @Nullable SDL_GPUTextureCreateInfo.Buffer
createSafe
(long address, int capacity) int
format()
format
(int value) Sets the specified value to theformat
field.int
height()
height
(int value) Sets the specified value to theheight
field.int
layer_count_or_depth
(int value) Sets the specified value to thelayer_count_or_depth
field.static SDL_GPUTextureCreateInfo
malloc()
Returns a newSDL_GPUTextureCreateInfo
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.static SDL_GPUTextureCreateInfo
malloc
(MemoryStack stack) Returns a newSDL_GPUTextureCreateInfo
instance allocated on the specifiedMemoryStack
.static int
nformat
(long struct) Unsafe version offormat()
.static void
nformat
(long struct, int value) Unsafe version offormat
.static int
nheight
(long struct) Unsafe version ofheight()
.static void
nheight
(long struct, int value) Unsafe version ofheight
.static int
nlayer_count_or_depth
(long struct) Unsafe version oflayer_count_or_depth()
.static void
nlayer_count_or_depth
(long struct, int value) Unsafe version oflayer_count_or_depth
.static int
nnum_levels
(long struct) Unsafe version ofnum_levels()
.static void
nnum_levels
(long struct, int value) Unsafe version ofnum_levels
.static int
nprops
(long struct) Unsafe version ofprops()
.static void
nprops
(long struct, int value) Unsafe version ofprops
.static int
nsample_count
(long struct) Unsafe version ofsample_count()
.static void
nsample_count
(long struct, int value) Unsafe version ofsample_count
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.int
num_levels
(int value) Sets the specified value to thenum_levels
field.static int
nusage
(long struct) Unsafe version ofusage()
.static void
nusage
(long struct, int value) Unsafe version ofusage
.static int
nwidth
(long struct) Unsafe version ofwidth()
.static void
nwidth
(long struct, int value) Unsafe version ofwidth
.int
props()
props
(int value) Sets the specified value to theprops
field.int
sample_count
(int value) Sets the specified value to thesample_count
field.set
(int type, int format, int usage, int width, int height, int layer_count_or_depth, int num_levels, int sample_count, int props) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.int
usage()
usage
(int value) Sets the specified value to theusage
field.int
width()
width
(int value) Sets the specified value to thewidth
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. -
TYPE
public static final int TYPEThe struct member offsets. -
FORMAT
public static final int FORMATThe struct member offsets. -
USAGE
public static final int USAGEThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
LAYER_COUNT_OR_DEPTH
public static final int LAYER_COUNT_OR_DEPTHThe struct member offsets. -
NUM_LEVELS
public static final int NUM_LEVELSThe struct member offsets. -
SAMPLE_COUNT
public static final int SAMPLE_COUNTThe struct member offsets. -
PROPS
public static final int PROPSThe struct member offsets.
-
-
Constructor Details
-
SDL_GPUTextureCreateInfo
Creates aSDL_GPUTextureCreateInfo
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_GPUTextureCreateInfo>
-
type
public int type()- Returns:
- the value of the
type
field.
-
format
public int format()- Returns:
- the value of the
format
field.
-
usage
public int usage()- Returns:
- the value of the
usage
field.
-
width
public int width()- Returns:
- the value of the
width
field.
-
height
public int height()- Returns:
- the value of the
height
field.
-
layer_count_or_depth
public int layer_count_or_depth()- Returns:
- the value of the
layer_count_or_depth
field.
-
num_levels
public int num_levels()- Returns:
- the value of the
num_levels
field.
-
sample_count
public int sample_count()- Returns:
- the value of the
sample_count
field.
-
props
public int props()- Returns:
- the value of the
props
field.
-
type
Sets the specified value to thetype
field. -
format
Sets the specified value to theformat
field. -
usage
Sets the specified value to theusage
field. -
width
Sets the specified value to thewidth
field. -
height
Sets the specified value to theheight
field. -
layer_count_or_depth
Sets the specified value to thelayer_count_or_depth
field. -
num_levels
Sets the specified value to thenum_levels
field. -
sample_count
Sets the specified value to thesample_count
field. -
props
Sets the specified value to theprops
field. -
set
public SDL_GPUTextureCreateInfo set(int type, int format, int usage, int width, int height, int layer_count_or_depth, int num_levels, int sample_count, 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_GPUTextureCreateInfo
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUTextureCreateInfo
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newSDL_GPUTextureCreateInfo
instance allocated withBufferUtils
. -
create
Returns a newSDL_GPUTextureCreateInfo
instance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aSDL_GPUTextureCreateInfo.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUTextureCreateInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUTextureCreateInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newSDL_GPUTextureCreateInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
nformat
public static int nformat(long struct) Unsafe version offormat()
. -
nusage
public static int nusage(long struct) Unsafe version ofusage()
. -
nwidth
public static int nwidth(long struct) Unsafe version ofwidth()
. -
nheight
public static int nheight(long struct) Unsafe version ofheight()
. -
nlayer_count_or_depth
public static int nlayer_count_or_depth(long struct) Unsafe version oflayer_count_or_depth()
. -
nnum_levels
public static int nnum_levels(long struct) Unsafe version ofnum_levels()
. -
nsample_count
public static int nsample_count(long struct) Unsafe version ofsample_count()
. -
nprops
public static int nprops(long struct) Unsafe version ofprops()
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nformat
public static void nformat(long struct, int value) Unsafe version offormat
. -
nusage
public static void nusage(long struct, int value) Unsafe version ofusage
. -
nwidth
public static void nwidth(long struct, int value) Unsafe version ofwidth
. -
nheight
public static void nheight(long struct, int value) Unsafe version ofheight
. -
nlayer_count_or_depth
public static void nlayer_count_or_depth(long struct, int value) Unsafe version oflayer_count_or_depth
. -
nnum_levels
public static void nnum_levels(long struct, int value) Unsafe version ofnum_levels
. -
nsample_count
public static void nsample_count(long struct, int value) Unsafe version ofsample_count
. -
nprops
public static void nprops(long struct, int value) Unsafe version ofprops
.
-