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.NativeResourceConfigurable runtime limits parameters.Layout
struct bgfx_init_limits_t { uint16_tmaxEncoders(); uint32_tminResourceCbSize(); uint32_ttransientVbSize(); uint32_ttransientIbSize(); }
-
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXENCODERS
MINRESOURCECBSIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTRANSIENTIBSIZE
TRANSIENTVBSIZEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXInitLimits(java.nio.ByteBuffer container)Creates aBGFXInitLimitsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 BGFXInitLimitscallocStack()Deprecated.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 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 BGFXInitLimitsmallocStack()Deprecated.static BGFXInitLimitsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.shortmaxEncoders()maximum number of encoder threadsBGFXInitLimitsmaxEncoders(short value)Sets the specified value to themaxEncoders()field.intminResourceCbSize()minimum resource command buffer sizeBGFXInitLimitsminResourceCbSize(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.BGFXInitLimitsset(short maxEncoders, int minResourceCbSize, int transientVbSize, int transientIbSize)Initializes this struct with the specified values.BGFXInitLimitsset(BGFXInitLimits src)Copies the specified struct data to this struct.intsizeof()inttransientIbSize()maximum transient index buffer sizeBGFXInitLimitstransientIbSize(int value)Sets the specified value to thetransientIbSize()field.inttransientVbSize()maximum transient vertex buffer sizeBGFXInitLimitstransientVbSize(int value)Sets the specified value to thetransientVbSize()field.
-
-
-
Constructor Detail
-
BGFXInitLimits
public BGFXInitLimits(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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
public BGFXInitLimits maxEncoders(short value)
Sets the specified value to themaxEncoders()field.
-
minResourceCbSize
public BGFXInitLimits minResourceCbSize(int value)
Sets the specified value to theminResourceCbSize()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 minResourceCbSize, 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 newBGFXInitLimitsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BGFXInitLimits calloc()
Returns a newBGFXInitLimitsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BGFXInitLimits create()
Returns a newBGFXInitLimitsinstance allocated withBufferUtils.
-
create
public static BGFXInitLimits create(long address)
Returns a newBGFXInitLimitsinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXInitLimits createSafe(long address)
-
mallocStack
@Deprecated public static BGFXInitLimits mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXInitLimits callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXInitLimits mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXInitLimits callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
malloc
public static BGFXInitLimits malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXInitLimitsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BGFXInitLimits calloc(org.lwjgl.system.MemoryStack stack)
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.
-
-