public class BGFXInitLimits
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
maxEncoders – maximum number of encoder threadstransientVbSize – maximum transient vertex buffer sizetransientIbSize – maximum transient index buffer size
struct bgfx_init_limits_t {
uint16_t maxEncoders;
uint32_t transientVbSize;
uint32_t transientIbSize;
}| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MAXENCODERS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TRANSIENTIBSIZE
The struct member offsets.
|
static int |
TRANSIENTVBSIZE
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXInitLimits(java.nio.ByteBuffer container)
Creates a
BGFXInitLimits instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXInitLimits |
calloc()
Returns a new
BGFXInitLimits instance allocated with memCalloc. |
static BGFXInitLimits |
callocStack()
Returns a new
BGFXInitLimits instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXInitLimits |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXInitLimits instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXInitLimits |
create()
Returns a new
BGFXInitLimits instance allocated with BufferUtils. |
static BGFXInitLimits |
create(long address)
Returns a new
BGFXInitLimits instance for the specified memory address. |
static BGFXInitLimits |
createSafe(long address)
|
static BGFXInitLimits |
malloc()
Returns a new
BGFXInitLimits instance allocated with memAlloc. |
static BGFXInitLimits |
mallocStack()
Returns a new
BGFXInitLimits instance allocated on the thread-local MemoryStack. |
static BGFXInitLimits |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXInitLimits instance allocated on the specified MemoryStack. |
short |
maxEncoders()
Returns the value of the
maxEncoders field. |
BGFXInitLimits |
maxEncoders(short value)
Sets the specified value to the
maxEncoders field. |
static short |
nmaxEncoders(long struct)
Unsafe version of
maxEncoders(). |
static void |
nmaxEncoders(long struct,
short value)
Unsafe version of
maxEncoders. |
static int |
ntransientIbSize(long struct)
Unsafe version of
transientIbSize(). |
static void |
ntransientIbSize(long struct,
int value)
Unsafe version of
transientIbSize. |
static int |
ntransientVbSize(long struct)
Unsafe version of
transientVbSize(). |
static void |
ntransientVbSize(long struct,
int value)
Unsafe version of
transientVbSize. |
BGFXInitLimits |
set(BGFXInitLimits src)
Copies the specified struct data to this struct.
|
BGFXInitLimits |
set(short maxEncoders,
int transientVbSize,
int transientIbSize)
Initializes this struct with the specified values.
|
int |
sizeof() |
int |
transientIbSize()
Returns the value of the
transientIbSize field. |
BGFXInitLimits |
transientIbSize(int value)
Sets the specified value to the
transientIbSize field. |
int |
transientVbSize()
Returns the value of the
transientVbSize field. |
BGFXInitLimits |
transientVbSize(int value)
Sets the specified value to the
transientVbSize field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MAXENCODERS
public static final int TRANSIENTVBSIZE
public static final int TRANSIENTIBSIZE
public BGFXInitLimits(java.nio.ByteBuffer container)
BGFXInitLimits instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic short maxEncoders()
maxEncoders field.public int transientVbSize()
transientVbSize field.public int transientIbSize()
transientIbSize field.public BGFXInitLimits maxEncoders(short value)
maxEncoders field.public BGFXInitLimits transientVbSize(int value)
transientVbSize field.public BGFXInitLimits transientIbSize(int value)
transientIbSize field.public BGFXInitLimits set(short maxEncoders, int transientVbSize, int transientIbSize)
public BGFXInitLimits set(BGFXInitLimits src)
src - the source structpublic static BGFXInitLimits malloc()
BGFXInitLimits instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXInitLimits calloc()
BGFXInitLimits instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXInitLimits create()
BGFXInitLimits instance allocated with BufferUtils.public static BGFXInitLimits create(long address)
BGFXInitLimits instance for the specified memory address.@Nullable public static BGFXInitLimits createSafe(long address)
public static BGFXInitLimits mallocStack()
BGFXInitLimits instance allocated on the thread-local MemoryStack.public static BGFXInitLimits callocStack()
BGFXInitLimits instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXInitLimits mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXInitLimits instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXInitLimits callocStack(org.lwjgl.system.MemoryStack stack)
BGFXInitLimits instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static short nmaxEncoders(long struct)
maxEncoders().public static int ntransientVbSize(long struct)
transientVbSize().public static int ntransientIbSize(long struct)
transientIbSize().public static void nmaxEncoders(long struct,
short value)
maxEncoders.public static void ntransientVbSize(long struct,
int value)
transientVbSize.public static void ntransientIbSize(long struct,
int value)
transientIbSize.Copyright LWJGL. All Rights Reserved. License terms.