public class MeshoptVertexCacheStatistics
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
acmr – transformed vertices / triangle count; best case 0.5, worst case 3.0, optimum depends on topologyatvr – transformed vertices / vertex count; best case 1.0, worst case 6.0, optimum is 1.0 (each vertex is transformed once)
struct meshopt_VertexCacheStatistics {
unsigned int vertices_transformed;
unsigned int warps_executed;
float acmr;
float atvr;
}| Modifier and Type | Class and Description |
|---|---|
static class |
MeshoptVertexCacheStatistics.Buffer
An array of
MeshoptVertexCacheStatistics structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACMR
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ATVR
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VERTICES_TRANSFORMED
The struct member offsets.
|
static int |
WARPS_EXECUTED
The struct member offsets.
|
| Constructor and Description |
|---|
MeshoptVertexCacheStatistics(java.nio.ByteBuffer container)
Creates a
MeshoptVertexCacheStatistics instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
float |
acmr()
Returns the value of the
acmr field. |
float |
atvr()
Returns the value of the
atvr field. |
static MeshoptVertexCacheStatistics |
calloc()
Returns a new
MeshoptVertexCacheStatistics instance allocated with memCalloc. |
static MeshoptVertexCacheStatistics.Buffer |
calloc(int capacity)
Returns a new
MeshoptVertexCacheStatistics.Buffer instance allocated with memCalloc. |
static MeshoptVertexCacheStatistics |
callocStack()
Returns a new
MeshoptVertexCacheStatistics instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MeshoptVertexCacheStatistics.Buffer |
callocStack(int capacity)
Returns a new
MeshoptVertexCacheStatistics.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MeshoptVertexCacheStatistics.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptVertexCacheStatistics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MeshoptVertexCacheStatistics |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptVertexCacheStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MeshoptVertexCacheStatistics |
create()
Returns a new
MeshoptVertexCacheStatistics instance allocated with BufferUtils. |
static MeshoptVertexCacheStatistics.Buffer |
create(int capacity)
Returns a new
MeshoptVertexCacheStatistics.Buffer instance allocated with BufferUtils. |
static MeshoptVertexCacheStatistics |
create(long address)
Returns a new
MeshoptVertexCacheStatistics instance for the specified memory address. |
static MeshoptVertexCacheStatistics.Buffer |
create(long address,
int capacity)
Create a
MeshoptVertexCacheStatistics.Buffer instance at the specified memory. |
static MeshoptVertexCacheStatistics |
createSafe(long address)
|
static MeshoptVertexCacheStatistics.Buffer |
createSafe(long address,
int capacity)
|
static MeshoptVertexCacheStatistics |
malloc()
Returns a new
MeshoptVertexCacheStatistics instance allocated with memAlloc. |
static MeshoptVertexCacheStatistics.Buffer |
malloc(int capacity)
Returns a new
MeshoptVertexCacheStatistics.Buffer instance allocated with memAlloc. |
static MeshoptVertexCacheStatistics |
mallocStack()
Returns a new
MeshoptVertexCacheStatistics instance allocated on the thread-local MemoryStack. |
static MeshoptVertexCacheStatistics.Buffer |
mallocStack(int capacity)
Returns a new
MeshoptVertexCacheStatistics.Buffer instance allocated on the thread-local MemoryStack. |
static MeshoptVertexCacheStatistics.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptVertexCacheStatistics.Buffer instance allocated on the specified MemoryStack. |
static MeshoptVertexCacheStatistics |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptVertexCacheStatistics instance allocated on the specified MemoryStack. |
static float |
nacmr(long struct)
Unsafe version of
acmr(). |
static float |
natvr(long struct)
Unsafe version of
atvr(). |
static int |
nvertices_transformed(long struct)
Unsafe version of
vertices_transformed(). |
static int |
nwarps_executed(long struct)
Unsafe version of
warps_executed(). |
int |
sizeof() |
int |
vertices_transformed()
Returns the value of the
vertices_transformed field. |
int |
warps_executed()
Returns the value of the
warps_executed field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VERTICES_TRANSFORMED
public static final int WARPS_EXECUTED
public static final int ACMR
public static final int ATVR
public MeshoptVertexCacheStatistics(java.nio.ByteBuffer container)
MeshoptVertexCacheStatistics 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 int vertices_transformed()
vertices_transformed field.public int warps_executed()
warps_executed field.public float acmr()
acmr field.public float atvr()
atvr field.public static MeshoptVertexCacheStatistics malloc()
MeshoptVertexCacheStatistics instance allocated with memAlloc. The instance must be explicitly freed.public static MeshoptVertexCacheStatistics calloc()
MeshoptVertexCacheStatistics instance allocated with memCalloc. The instance must be explicitly freed.public static MeshoptVertexCacheStatistics create()
MeshoptVertexCacheStatistics instance allocated with BufferUtils.public static MeshoptVertexCacheStatistics create(long address)
MeshoptVertexCacheStatistics instance for the specified memory address.@Nullable public static MeshoptVertexCacheStatistics createSafe(long address)
public static MeshoptVertexCacheStatistics.Buffer malloc(int capacity)
MeshoptVertexCacheStatistics.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MeshoptVertexCacheStatistics.Buffer calloc(int capacity)
MeshoptVertexCacheStatistics.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MeshoptVertexCacheStatistics.Buffer create(int capacity)
MeshoptVertexCacheStatistics.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static MeshoptVertexCacheStatistics.Buffer create(long address, int capacity)
MeshoptVertexCacheStatistics.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static MeshoptVertexCacheStatistics.Buffer createSafe(long address, int capacity)
public static MeshoptVertexCacheStatistics mallocStack()
MeshoptVertexCacheStatistics instance allocated on the thread-local MemoryStack.public static MeshoptVertexCacheStatistics callocStack()
MeshoptVertexCacheStatistics instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static MeshoptVertexCacheStatistics mallocStack(org.lwjgl.system.MemoryStack stack)
MeshoptVertexCacheStatistics instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static MeshoptVertexCacheStatistics callocStack(org.lwjgl.system.MemoryStack stack)
MeshoptVertexCacheStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static MeshoptVertexCacheStatistics.Buffer mallocStack(int capacity)
MeshoptVertexCacheStatistics.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static MeshoptVertexCacheStatistics.Buffer callocStack(int capacity)
MeshoptVertexCacheStatistics.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static MeshoptVertexCacheStatistics.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MeshoptVertexCacheStatistics.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static MeshoptVertexCacheStatistics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MeshoptVertexCacheStatistics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nvertices_transformed(long struct)
vertices_transformed().public static int nwarps_executed(long struct)
warps_executed().public static float nacmr(long struct)
acmr().public static float natvr(long struct)
atvr().Copyright LWJGL. All Rights Reserved. License terms.