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 maxTransientVbSize;
uint32_t maxTransientIbSize;
uint32_t minUniformBufferSize;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.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 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.shortmaxEncoders(short value) Sets the specified value to themaxEncodersfield.intmaxTransientIbSize(int value) Sets the specified value to themaxTransientIbSizefield.intmaxTransientVbSize(int value) Sets the specified value to themaxTransientVbSizefield.intminResourceCbSize(int value) Sets the specified value to theminResourceCbSizefield.intminUniformBufferSize(int value) Sets the specified value to theminUniformBufferSizefield.static shortnmaxEncoders(long struct) Unsafe version ofmaxEncoders().static voidnmaxEncoders(long struct, short value) Unsafe version ofmaxEncoders.static intnmaxTransientIbSize(long struct) Unsafe version ofmaxTransientIbSize().static voidnmaxTransientIbSize(long struct, int value) Unsafe version ofmaxTransientIbSize.static intnmaxTransientVbSize(long struct) Unsafe version ofmaxTransientVbSize().static voidnmaxTransientVbSize(long struct, int value) Unsafe version ofmaxTransientVbSize.static intnminResourceCbSize(long struct) Unsafe version ofminResourceCbSize().static voidnminResourceCbSize(long struct, int value) Unsafe version ofminResourceCbSize.static intnminUniformBufferSize(long struct) Unsafe version ofminUniformBufferSize().static voidnminUniformBufferSize(long struct, int value) Unsafe version ofminUniformBufferSize.set(short maxEncoders, int minResourceCbSize, int maxTransientVbSize, int maxTransientIbSize, int minUniformBufferSize) Initializes this struct with the specified values.set(BGFXInitLimits src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
MAXTRANSIENTVBSIZE
public static final int MAXTRANSIENTVBSIZEThe struct member offsets. -
MAXTRANSIENTIBSIZE
public static final int MAXTRANSIENTIBSIZEThe struct member offsets. -
MINUNIFORMBUFFERSIZE
public static final int MINUNIFORMBUFFERSIZEThe 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.
-
maxTransientVbSize
public int maxTransientVbSize()- Returns:
- the value of the
maxTransientVbSizefield.
-
maxTransientIbSize
public int maxTransientIbSize()- Returns:
- the value of the
maxTransientIbSizefield.
-
minUniformBufferSize
public int minUniformBufferSize()- Returns:
- the value of the
minUniformBufferSizefield.
-
maxEncoders
Sets the specified value to themaxEncodersfield. -
minResourceCbSize
Sets the specified value to theminResourceCbSizefield. -
maxTransientVbSize
Sets the specified value to themaxTransientVbSizefield. -
maxTransientIbSize
Sets the specified value to themaxTransientIbSizefield. -
minUniformBufferSize
Sets the specified value to theminUniformBufferSizefield. -
set
public BGFXInitLimits set(short maxEncoders, int minResourceCbSize, int maxTransientVbSize, int maxTransientIbSize, int minUniformBufferSize) 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
-
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(). -
nmaxTransientVbSize
public static int nmaxTransientVbSize(long struct) Unsafe version ofmaxTransientVbSize(). -
nmaxTransientIbSize
public static int nmaxTransientIbSize(long struct) Unsafe version ofmaxTransientIbSize(). -
nminUniformBufferSize
public static int nminUniformBufferSize(long struct) Unsafe version ofminUniformBufferSize(). -
nmaxEncoders
public static void nmaxEncoders(long struct, short value) Unsafe version ofmaxEncoders. -
nminResourceCbSize
public static void nminResourceCbSize(long struct, int value) Unsafe version ofminResourceCbSize. -
nmaxTransientVbSize
public static void nmaxTransientVbSize(long struct, int value) Unsafe version ofmaxTransientVbSize. -
nmaxTransientIbSize
public static void nmaxTransientIbSize(long struct, int value) Unsafe version ofmaxTransientIbSize. -
nminUniformBufferSize
public static void nminUniformBufferSize(long struct, int value) Unsafe version ofminUniformBufferSize.
-