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.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 size in bytes.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
ConstructorsConstructorDescriptionBGFXInitLimits(ByteBuffer container) Creates aBGFXInitLimitsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic BGFXInitLimitscalloc()Returns a newBGFXInitLimitsinstance allocated withmemCalloc.static BGFXInitLimitscalloc(MemoryStack stack) Returns a newBGFXInitLimitsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXInitLimitsDeprecated.static BGFXInitLimitscallocStack(MemoryStack stack) Deprecated.static BGFXInitLimitscreate()Returns a newBGFXInitLimitsinstance allocated withBufferUtils.static BGFXInitLimitscreate(long address) Returns a newBGFXInitLimitsinstance for the specified memory address.static @Nullable BGFXInitLimitscreateSafe(long address) static BGFXInitLimitsmalloc()Returns a newBGFXInitLimitsinstance allocated withmemAlloc.static BGFXInitLimitsmalloc(MemoryStack stack) Returns a newBGFXInitLimitsinstance allocated on the specifiedMemoryStack.static BGFXInitLimitsDeprecated.static BGFXInitLimitsmallocStack(MemoryStack stack) Deprecated.shortmaxEncoders(short value) Sets the specified value to themaxEncodersfield.intminResourceCbSize(int value) Sets the specified value to theminResourceCbSizefield.static shortnmaxEncoders(long struct) Unsafe version ofmaxEncoders().static voidnmaxEncoders(long struct, short value) Unsafe version ofmaxEncoders.static intnminResourceCbSize(long struct) Unsafe version ofminResourceCbSize().static voidnminResourceCbSize(long struct, int value) Unsafe version ofminResourceCbSize.static intntransientIbSize(long struct) Unsafe version oftransientIbSize().static voidntransientIbSize(long struct, int value) Unsafe version oftransientIbSize.static intntransientVbSize(long struct) Unsafe version oftransientVbSize().static voidntransientVbSize(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.intsizeof()Returnssizeof(struct).inttransientIbSize(int value) Sets the specified value to thetransientIbSizefield.inttransientVbSize(int value) Sets the specified value to thetransientVbSizefield.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. -
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 aBGFXInitLimitsinstance 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<BGFXInitLimits>
-
maxEncoders
public short maxEncoders()- Returns:
- the value of the
maxEncodersfield.
-
minResourceCbSize
public int minResourceCbSize()- Returns:
- the value of the
minResourceCbSizefield.
-
transientVbSize
public int transientVbSize()- Returns:
- the value of the
transientVbSizefield.
-
transientIbSize
public int transientIbSize()- Returns:
- the value of the
transientIbSizefield.
-
maxEncoders
Sets the specified value to themaxEncodersfield. -
minResourceCbSize
Sets the specified value to theminResourceCbSizefield. -
transientVbSize
Sets the specified value to thetransientVbSizefield. -
transientIbSize
Sets the specified value to thetransientIbSizefield. -
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 newBGFXInitLimitsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newBGFXInitLimitsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newBGFXInitLimitsinstance allocated withBufferUtils. -
create
Returns a newBGFXInitLimitsinstance 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 newBGFXInitLimitsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newBGFXInitLimitsinstance allocated on the specifiedMemoryStackand 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.
-