Package org.lwjgl.util.meshoptimizer
Class MeshoptVertexCacheStatistics
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.meshoptimizer.MeshoptVertexCacheStatistics
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class MeshoptVertexCacheStatistics extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeshoptVertexCacheStatistics.BufferAn array ofMeshoptVertexCacheStatisticsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intACMRThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intATVRThe struct member offsets.static intSIZEOFThe struct size in bytes.static intVERTICES_TRANSFORMED
WARPS_EXECUTEDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description MeshoptVertexCacheStatistics(java.nio.ByteBuffer container)Creates aMeshoptVertexCacheStatisticsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatacmr()transformed vertices / triangle count; best case 0.5, worst case 3.0, optimum depends on topologyfloatatvr()transformed vertices / vertex count; best case 1.0, worst case 6.0, optimum is 1.0 (each vertex is transformed once)static MeshoptVertexCacheStatisticscalloc()Returns a newMeshoptVertexCacheStatisticsinstance allocated withmemCalloc.static MeshoptVertexCacheStatistics.Buffercalloc(int capacity)Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated withmemCalloc.static MeshoptVertexCacheStatistics.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MeshoptVertexCacheStatisticscalloc(org.lwjgl.system.MemoryStack stack)Returns a newMeshoptVertexCacheStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MeshoptVertexCacheStatisticscreate()Returns a newMeshoptVertexCacheStatisticsinstance allocated withBufferUtils.static MeshoptVertexCacheStatistics.Buffercreate(int capacity)Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated withBufferUtils.static MeshoptVertexCacheStatisticscreate(long address)Returns a newMeshoptVertexCacheStatisticsinstance for the specified memory address.static MeshoptVertexCacheStatistics.Buffercreate(long address, int capacity)Create aMeshoptVertexCacheStatistics.Bufferinstance at the specified memory.static MeshoptVertexCacheStatisticscreateSafe(long address)static MeshoptVertexCacheStatistics.BuffercreateSafe(long address, int capacity)static MeshoptVertexCacheStatisticsmalloc()Returns a newMeshoptVertexCacheStatisticsinstance allocated withmemAlloc.static MeshoptVertexCacheStatistics.Buffermalloc(int capacity)Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated withmemAlloc.static MeshoptVertexCacheStatistics.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated on the specifiedMemoryStack.static MeshoptVertexCacheStatisticsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newMeshoptVertexCacheStatisticsinstance allocated on the specifiedMemoryStack.static floatnacmr(long struct)Unsafe version ofacmr().static floatnatvr(long struct)Unsafe version ofatvr().static intnvertices_transformed(long struct)Unsafe version ofvertices_transformed().static intnwarps_executed(long struct)Unsafe version ofwarps_executed().intsizeof()intvertices_transformed()intwarps_executed()
-
-
-
Constructor Detail
-
MeshoptVertexCacheStatistics
public MeshoptVertexCacheStatistics(java.nio.ByteBuffer container)
Creates aMeshoptVertexCacheStatisticsinstance 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
-
vertices_transformed
public int vertices_transformed()
- Returns:
- the value of the
vertices_transformedfield.
-
warps_executed
public int warps_executed()
- Returns:
- the value of the
warps_executedfield.
-
acmr
public float acmr()
transformed vertices / triangle count; best case 0.5, worst case 3.0, optimum depends on topology
-
atvr
public float atvr()
transformed vertices / vertex count; best case 1.0, worst case 6.0, optimum is 1.0 (each vertex is transformed once)
-
malloc
public static MeshoptVertexCacheStatistics malloc()
Returns a newMeshoptVertexCacheStatisticsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static MeshoptVertexCacheStatistics calloc()
Returns a newMeshoptVertexCacheStatisticsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static MeshoptVertexCacheStatistics create()
Returns a newMeshoptVertexCacheStatisticsinstance allocated withBufferUtils.
-
create
public static MeshoptVertexCacheStatistics create(long address)
Returns a newMeshoptVertexCacheStatisticsinstance for the specified memory address.
-
createSafe
@Nullable public static MeshoptVertexCacheStatistics createSafe(long address)
-
malloc
public static MeshoptVertexCacheStatistics.Buffer malloc(int capacity)
Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static MeshoptVertexCacheStatistics.Buffer calloc(int capacity)
Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static MeshoptVertexCacheStatistics.Buffer create(int capacity)
Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static MeshoptVertexCacheStatistics.Buffer create(long address, int capacity)
Create aMeshoptVertexCacheStatistics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static MeshoptVertexCacheStatistics.Buffer createSafe(long address, int capacity)
-
malloc
public static MeshoptVertexCacheStatistics malloc(org.lwjgl.system.MemoryStack stack)
Returns a newMeshoptVertexCacheStatisticsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static MeshoptVertexCacheStatistics calloc(org.lwjgl.system.MemoryStack stack)
Returns a newMeshoptVertexCacheStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static MeshoptVertexCacheStatistics.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static MeshoptVertexCacheStatistics.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMeshoptVertexCacheStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nvertices_transformed
public static int nvertices_transformed(long struct)
Unsafe version ofvertices_transformed().
-
nwarps_executed
public static int nwarps_executed(long struct)
Unsafe version ofwarps_executed().
-
nacmr
public static float nacmr(long struct)
Unsafe version ofacmr().
-
natvr
public static float natvr(long struct)
Unsafe version ofatvr().
-
-