Package org.lwjgl.llvm
Class CXTUResourceUsageEntry
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXTUResourceUsageEntry
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class CXTUResourceUsageEntry extends org.lwjgl.system.Struct
Member documentation
kind
– the memory usage categoryamount
– amount of resources used. The units will depend on the resource kind.
Layout
struct CXTUResourceUsageEntry { enum CXTUResourceUsageKind kind; unsigned long amount; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CXTUResourceUsageEntry.Buffer
An array ofCXTUResourceUsageEntry
structs.
-
Constructor Summary
Constructors Constructor Description CXTUResourceUsageEntry(java.nio.ByteBuffer container)
Creates aCXTUResourceUsageEntry
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
amount()
Returns the value of theamount
field.static CXTUResourceUsageEntry
create(long address)
Returns a newCXTUResourceUsageEntry
instance for the specified memory address.static CXTUResourceUsageEntry.Buffer
create(long address, int capacity)
Create aCXTUResourceUsageEntry.Buffer
instance at the specified memory.static CXTUResourceUsageEntry
createSafe(long address)
static CXTUResourceUsageEntry.Buffer
createSafe(long address, int capacity)
int
kind()
Returns the value of thekind
field.static long
namount(long struct)
Unsafe version ofamount()
.static int
nkind(long struct)
Unsafe version ofkind()
.int
sizeof()
-
-
-
Constructor Detail
-
CXTUResourceUsageEntry
public CXTUResourceUsageEntry(java.nio.ByteBuffer container)
Creates aCXTUResourceUsageEntry
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
-
kind
public int kind()
Returns the value of thekind
field.
-
amount
public long amount()
Returns the value of theamount
field.
-
create
public static CXTUResourceUsageEntry create(long address)
Returns a newCXTUResourceUsageEntry
instance for the specified memory address.
-
createSafe
@Nullable public static CXTUResourceUsageEntry createSafe(long address)
-
create
public static CXTUResourceUsageEntry.Buffer create(long address, int capacity)
Create aCXTUResourceUsageEntry.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CXTUResourceUsageEntry.Buffer createSafe(long address, int capacity)
-
nkind
public static int nkind(long struct)
Unsafe version ofkind()
.
-
namount
public static long namount(long struct)
Unsafe version ofamount()
.
-
-