Package org.lwjgl.bgfx
Class BGFXInitLimits
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct bgfx_init_limits_t {
uint16_t maxEncoders;
uint32_t minResourceCbSize;
uint32_t transientVbSize;
uint32_t transientIbSize;
}
-
Nested Class Summary
Nested 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 size in bytes.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
ConstructorsConstructorDescriptionBGFXInitLimits
(ByteBuffer container) Creates aBGFXInitLimits
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic BGFXInitLimits
calloc()
Returns a newBGFXInitLimits
instance allocated withmemCalloc
.static BGFXInitLimits
calloc
(MemoryStack stack) Returns a newBGFXInitLimits
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static BGFXInitLimits
Deprecated.static BGFXInitLimits
callocStack
(MemoryStack stack) Deprecated.static BGFXInitLimits
create()
Returns a newBGFXInitLimits
instance allocated withBufferUtils
.static BGFXInitLimits
create
(long address) Returns a newBGFXInitLimits
instance for the specified memory address.static @Nullable BGFXInitLimits
createSafe
(long address) static BGFXInitLimits
malloc()
Returns a newBGFXInitLimits
instance allocated withmemAlloc
.static BGFXInitLimits
malloc
(MemoryStack stack) Returns a newBGFXInitLimits
instance allocated on the specifiedMemoryStack
.static BGFXInitLimits
Deprecated.static BGFXInitLimits
mallocStack
(MemoryStack stack) Deprecated.short
maxEncoders
(short value) Sets the specified value to themaxEncoders
field.int
minResourceCbSize
(int value) Sets the specified value to theminResourceCbSize
field.static short
nmaxEncoders
(long struct) Unsafe version ofmaxEncoders()
.static void
nmaxEncoders
(long struct, short value) Unsafe version ofmaxEncoders
.static int
nminResourceCbSize
(long struct) Unsafe version ofminResourceCbSize()
.static void
nminResourceCbSize
(long struct, int value) Unsafe version ofminResourceCbSize
.static int
ntransientIbSize
(long struct) Unsafe version oftransientIbSize()
.static void
ntransientIbSize
(long struct, int value) Unsafe version oftransientIbSize
.static int
ntransientVbSize
(long struct) Unsafe version oftransientVbSize()
.static void
ntransientVbSize
(long struct, int value) Unsafe version oftransientVbSize
.set
(short maxEncoders, int minResourceCbSize, int transientVbSize, int transientIbSize) Initializes this struct with the specified values.set
(BGFXInitLimits src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
transientIbSize
(int value) Sets the specified value to thetransientIbSize
field.int
transientVbSize
(int value) Sets the specified value to thetransientVbSize
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. -
MAXENCODERS
public static final int MAXENCODERSThe struct member offsets. -
MINRESOURCECBSIZE
public static final int MINRESOURCECBSIZEThe struct member offsets. -
TRANSIENTVBSIZE
public static final int TRANSIENTVBSIZEThe struct member offsets. -
TRANSIENTIBSIZE
public static final int TRANSIENTIBSIZEThe struct member offsets.
-
-
Constructor Details
-
BGFXInitLimits
Creates aBGFXInitLimits
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<BGFXInitLimits>
-
maxEncoders
public short maxEncoders()- Returns:
- the value of the
maxEncoders
field.
-
minResourceCbSize
public int minResourceCbSize()- Returns:
- the value of the
minResourceCbSize
field.
-
transientVbSize
public int transientVbSize()- Returns:
- the value of the
transientVbSize
field.
-
transientIbSize
public int transientIbSize()- Returns:
- the value of the
transientIbSize
field.
-
maxEncoders
Sets the specified value to themaxEncoders
field. -
minResourceCbSize
Sets the specified value to theminResourceCbSize
field. -
transientVbSize
Sets the specified value to thetransientVbSize
field. -
transientIbSize
Sets the specified value to thetransientIbSize
field. -
set
public BGFXInitLimits set(short maxEncoders, int minResourceCbSize, int transientVbSize, int transientIbSize) 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 newBGFXInitLimits
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newBGFXInitLimits
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newBGFXInitLimits
instance allocated withBufferUtils
. -
create
Returns a newBGFXInitLimits
instance for the specified memory address. -
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
malloc
Returns a newBGFXInitLimits
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newBGFXInitLimits
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
nmaxEncoders
public static short nmaxEncoders(long struct) Unsafe version ofmaxEncoders()
. -
nminResourceCbSize
public static int nminResourceCbSize(long struct) Unsafe version ofminResourceCbSize()
. -
ntransientVbSize
public static int ntransientVbSize(long struct) Unsafe version oftransientVbSize()
. -
ntransientIbSize
public static int ntransientIbSize(long struct) Unsafe version oftransientIbSize()
. -
nmaxEncoders
public static void nmaxEncoders(long struct, short value) Unsafe version ofmaxEncoders
. -
nminResourceCbSize
public static void nminResourceCbSize(long struct, int value) Unsafe version ofminResourceCbSize
. -
ntransientVbSize
public static void ntransientVbSize(long struct, int value) Unsafe version oftransientVbSize
. -
ntransientIbSize
public static void ntransientIbSize(long struct, int value) Unsafe version oftransientIbSize
.
-