Package org.lwjgl.bgfx
Class BGFXInitLimits
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<BGFXInitLimits>
org.lwjgl.bgfx.BGFXInitLimits
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BGFXInitLimits
extends org.lwjgl.system.Struct<BGFXInitLimits>
implements org.lwjgl.system.NativeResource
Configurable runtime limits parameters.
Layout
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
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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(org.lwjgl.system.MemoryStack stack) Returns a newBGFXInitLimitsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXInitLimitsDeprecated.static BGFXInitLimitscallocStack(org.lwjgl.system.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(org.lwjgl.system.MemoryStack stack) Returns a newBGFXInitLimitsinstance allocated on the specifiedMemoryStack.static BGFXInitLimitsDeprecated.static BGFXInitLimitsmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.shortmaximum number of encoder threadsmaxEncoders(short value) Sets the specified value to themaxEncoders()field.intminimum resource command buffer sizeminResourceCbSize(int value) Sets the specified value to theminResourceCbSize()field.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()intmaximum transient index buffer sizetransientIbSize(int value) Sets the specified value to thetransientIbSize()field.intmaximum transient vertex buffer sizetransientVbSize(int value) Sets the specified value to thetransientVbSize()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<BGFXInitLimits>
-
maxEncoders
public short maxEncoders()maximum number of encoder threads -
minResourceCbSize
public int minResourceCbSize()minimum resource command buffer size -
transientVbSize
public int transientVbSize()maximum transient vertex buffer size -
transientIbSize
public int transientIbSize()maximum transient index buffer size -
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 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.
-