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.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 size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionSDL_GPUTextureCreateInfo(ByteBuffer container) Creates aSDL_GPUTextureCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SDL_GPUTextureCreateInfocalloc()Returns a newSDL_GPUTextureCreateInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUTextureCreateInfocalloc(MemoryStack stack) Returns a newSDL_GPUTextureCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SDL_GPUTextureCreateInfocreate()Returns a newSDL_GPUTextureCreateInfoinstance allocated withBufferUtils.create(int capacity) Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated withBufferUtils.static SDL_GPUTextureCreateInfocreate(long address) Returns a newSDL_GPUTextureCreateInfoinstance for the specified memory address.create(long address, int capacity) Create aSDL_GPUTextureCreateInfo.Bufferinstance at the specified memory.static @Nullable SDL_GPUTextureCreateInfocreateSafe(long address) static @Nullable SDL_GPUTextureCreateInfo.BuffercreateSafe(long address, int capacity) intformat()format(int value) Sets the specified value to theformatfield.intheight()height(int value) Sets the specified value to theheightfield.intlayer_count_or_depth(int value) Sets the specified value to thelayer_count_or_depthfield.static SDL_GPUTextureCreateInfomalloc()Returns a newSDL_GPUTextureCreateInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static SDL_GPUTextureCreateInfomalloc(MemoryStack stack) Returns a newSDL_GPUTextureCreateInfoinstance allocated on the specifiedMemoryStack.static intnformat(long struct) Unsafe version offormat().static voidnformat(long struct, int value) Unsafe version offormat.static intnheight(long struct) Unsafe version ofheight().static voidnheight(long struct, int value) Unsafe version ofheight.static intnlayer_count_or_depth(long struct) Unsafe version oflayer_count_or_depth().static voidnlayer_count_or_depth(long struct, int value) Unsafe version oflayer_count_or_depth.static intnnum_levels(long struct) Unsafe version ofnum_levels().static voidnnum_levels(long struct, int value) Unsafe version ofnum_levels.static intnprops(long struct) Unsafe version ofprops().static voidnprops(long struct, int value) Unsafe version ofprops.static intnsample_count(long struct) Unsafe version ofsample_count().static voidnsample_count(long struct, int value) Unsafe version ofsample_count.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.intnum_levels(int value) Sets the specified value to thenum_levelsfield.static intnusage(long struct) Unsafe version ofusage().static voidnusage(long struct, int value) Unsafe version ofusage.static intnwidth(long struct) Unsafe version ofwidth().static voidnwidth(long struct, int value) Unsafe version ofwidth.intprops()props(int value) Sets the specified value to thepropsfield.intsample_count(int value) Sets the specified value to thesample_countfield.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.intsizeof()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.intusage()usage(int value) Sets the specified value to theusagefield.intwidth()width(int value) Sets the specified value to thewidthfield.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. -
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_GPUTextureCreateInfoinstance 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<SDL_GPUTextureCreateInfo>
-
type
public int type()- Returns:
- the value of the
typefield.
-
format
public int format()- Returns:
- the value of the
formatfield.
-
usage
public int usage()- Returns:
- the value of the
usagefield.
-
width
public int width()- Returns:
- the value of the
widthfield.
-
height
public int height()- Returns:
- the value of the
heightfield.
-
layer_count_or_depth
public int layer_count_or_depth()- Returns:
- the value of the
layer_count_or_depthfield.
-
num_levels
public int num_levels()- Returns:
- the value of the
num_levelsfield.
-
sample_count
public int sample_count()- Returns:
- the value of the
sample_countfield.
-
props
public int props()- Returns:
- the value of the
propsfield.
-
type
Sets the specified value to thetypefield. -
format
Sets the specified value to theformatfield. -
usage
Sets the specified value to theusagefield. -
width
Sets the specified value to thewidthfield. -
height
Sets the specified value to theheightfield. -
layer_count_or_depth
Sets the specified value to thelayer_count_or_depthfield. -
num_levels
Sets the specified value to thenum_levelsfield. -
sample_count
Sets the specified value to thesample_countfield. -
props
Sets the specified value to thepropsfield. -
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_GPUTextureCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSDL_GPUTextureCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSDL_GPUTextureCreateInfoinstance allocated withBufferUtils. -
create
Returns a newSDL_GPUTextureCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSDL_GPUTextureCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSDL_GPUTextureCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUTextureCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSDL_GPUTextureCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand 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.
-