Package org.lwjgl.bgfx
Class BGFXInitLimits
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXInitLimits
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class BGFXInitLimits extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Member documentation
maxEncoders
– maximum number of encoder threadstransientVbSize
– maximum transient vertex buffer sizetransientIbSize
– maximum transient index buffer size
Layout
struct bgfx_init_limits_t { uint16_t maxEncoders; uint32_t transientVbSize; uint32_t transientIbSize; }
-
-
Field Summary
Fields Modifier and Type Field 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
TRANSIENTVBSIZEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXInitLimits(java.nio.ByteBuffer container)
Creates aBGFXInitLimits
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BGFXInitLimits
calloc()
Returns a newBGFXInitLimits
instance allocated withmemCalloc
.static BGFXInitLimits
callocStack()
Returns a newBGFXInitLimits
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static BGFXInitLimits
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXInitLimits
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static BGFXInitLimits
create()
Returns a newBGFXInitLimits
instance allocated withBufferUtils
.static BGFXInitLimits
create(long address)
Returns a newBGFXInitLimits
instance for the specified memory address.static BGFXInitLimits
createSafe(long address)
static BGFXInitLimits
malloc()
Returns a newBGFXInitLimits
instance allocated withmemAlloc
.static BGFXInitLimits
mallocStack()
Returns a newBGFXInitLimits
instance allocated on the thread-localMemoryStack
.static BGFXInitLimits
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXInitLimits
instance allocated on the specifiedMemoryStack
.short
maxEncoders()
Returns the value of themaxEncoders
field.BGFXInitLimits
maxEncoders(short value)
Sets the specified value to themaxEncoders
field.static short
nmaxEncoders(long struct)
Unsafe version ofmaxEncoders()
.static void
nmaxEncoders(long struct, short value)
Unsafe version ofmaxEncoders
.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
.BGFXInitLimits
set(short maxEncoders, int transientVbSize, int transientIbSize)
Initializes this struct with the specified values.BGFXInitLimits
set(BGFXInitLimits src)
Copies the specified struct data to this struct.int
sizeof()
int
transientIbSize()
Returns the value of thetransientIbSize
field.BGFXInitLimits
transientIbSize(int value)
Sets the specified value to thetransientIbSize
field.int
transientVbSize()
Returns the value of thetransientVbSize
field.BGFXInitLimits
transientVbSize(int value)
Sets the specified value to thetransientVbSize
field.
-
-
-
Constructor Detail
-
BGFXInitLimits
public BGFXInitLimits(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
maxEncoders
public short maxEncoders()
Returns the value of themaxEncoders
field.
-
transientVbSize
public int transientVbSize()
Returns the value of thetransientVbSize
field.
-
transientIbSize
public int transientIbSize()
Returns the value of thetransientIbSize
field.
-
maxEncoders
public BGFXInitLimits maxEncoders(short value)
Sets the specified value to themaxEncoders
field.
-
transientVbSize
public BGFXInitLimits transientVbSize(int value)
Sets the specified value to thetransientVbSize
field.
-
transientIbSize
public BGFXInitLimits transientIbSize(int value)
Sets the specified value to thetransientIbSize
field.
-
set
public BGFXInitLimits set(short maxEncoders, int transientVbSize, int transientIbSize)
Initializes this struct with the specified values.
-
set
public BGFXInitLimits set(BGFXInitLimits src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static BGFXInitLimits malloc()
Returns a newBGFXInitLimits
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static BGFXInitLimits calloc()
Returns a newBGFXInitLimits
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static BGFXInitLimits create()
Returns a newBGFXInitLimits
instance allocated withBufferUtils
.
-
create
public static BGFXInitLimits create(long address)
Returns a newBGFXInitLimits
instance for the specified memory address.
-
createSafe
@Nullable public static BGFXInitLimits createSafe(long address)
-
mallocStack
public static BGFXInitLimits mallocStack()
Returns a newBGFXInitLimits
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static BGFXInitLimits callocStack()
Returns a newBGFXInitLimits
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static BGFXInitLimits mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXInitLimits
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static BGFXInitLimits callocStack(org.lwjgl.system.MemoryStack stack)
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()
.
-
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
.
-
ntransientVbSize
public static void ntransientVbSize(long struct, int value)
Unsafe version oftransientVbSize
.
-
ntransientIbSize
public static void ntransientIbSize(long struct, int value)
Unsafe version oftransientIbSize
.
-
-