Package org.lwjgl.util.meshoptimizer
Class MeshoptVertexFetchStatistics
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.meshoptimizer.MeshoptVertexFetchStatistics
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class MeshoptVertexFetchStatistics extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct meshopt_VertexFetchStatistics { unsigned int bytes_fetched; floatoverfetch(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMeshoptVertexFetchStatistics.BufferAn array ofMeshoptVertexFetchStatisticsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBYTES_FETCHED
OVERFETCHThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description MeshoptVertexFetchStatistics(java.nio.ByteBuffer container)Creates aMeshoptVertexFetchStatisticsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbytes_fetched()static MeshoptVertexFetchStatisticscalloc()Returns a newMeshoptVertexFetchStatisticsinstance allocated withmemCalloc.static MeshoptVertexFetchStatistics.Buffercalloc(int capacity)Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated withmemCalloc.static MeshoptVertexFetchStatistics.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MeshoptVertexFetchStatisticscalloc(org.lwjgl.system.MemoryStack stack)Returns a newMeshoptVertexFetchStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MeshoptVertexFetchStatisticscreate()Returns a newMeshoptVertexFetchStatisticsinstance allocated withBufferUtils.static MeshoptVertexFetchStatistics.Buffercreate(int capacity)Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated withBufferUtils.static MeshoptVertexFetchStatisticscreate(long address)Returns a newMeshoptVertexFetchStatisticsinstance for the specified memory address.static MeshoptVertexFetchStatistics.Buffercreate(long address, int capacity)Create aMeshoptVertexFetchStatistics.Bufferinstance at the specified memory.static MeshoptVertexFetchStatisticscreateSafe(long address)static MeshoptVertexFetchStatistics.BuffercreateSafe(long address, int capacity)static MeshoptVertexFetchStatisticsmalloc()Returns a newMeshoptVertexFetchStatisticsinstance allocated withmemAlloc.static MeshoptVertexFetchStatistics.Buffermalloc(int capacity)Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated withmemAlloc.static MeshoptVertexFetchStatistics.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated on the specifiedMemoryStack.static MeshoptVertexFetchStatisticsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newMeshoptVertexFetchStatisticsinstance allocated on the specifiedMemoryStack.static intnbytes_fetched(long struct)Unsafe version ofbytes_fetched().static floatnoverfetch(long struct)Unsafe version ofoverfetch().floatoverfetch()fetched bytes / vertex buffer size; best case 1.0 (each byte is fetched once)intsizeof()
-
-
-
Constructor Detail
-
MeshoptVertexFetchStatistics
public MeshoptVertexFetchStatistics(java.nio.ByteBuffer container)
Creates aMeshoptVertexFetchStatisticsinstance 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
-
bytes_fetched
public int bytes_fetched()
- Returns:
- the value of the
bytes_fetchedfield.
-
overfetch
public float overfetch()
fetched bytes / vertex buffer size; best case 1.0 (each byte is fetched once)
-
malloc
public static MeshoptVertexFetchStatistics malloc()
Returns a newMeshoptVertexFetchStatisticsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static MeshoptVertexFetchStatistics calloc()
Returns a newMeshoptVertexFetchStatisticsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static MeshoptVertexFetchStatistics create()
Returns a newMeshoptVertexFetchStatisticsinstance allocated withBufferUtils.
-
create
public static MeshoptVertexFetchStatistics create(long address)
Returns a newMeshoptVertexFetchStatisticsinstance for the specified memory address.
-
createSafe
@Nullable public static MeshoptVertexFetchStatistics createSafe(long address)
-
malloc
public static MeshoptVertexFetchStatistics.Buffer malloc(int capacity)
Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static MeshoptVertexFetchStatistics.Buffer calloc(int capacity)
Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static MeshoptVertexFetchStatistics.Buffer create(int capacity)
Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static MeshoptVertexFetchStatistics.Buffer create(long address, int capacity)
Create aMeshoptVertexFetchStatistics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static MeshoptVertexFetchStatistics.Buffer createSafe(long address, int capacity)
-
malloc
public static MeshoptVertexFetchStatistics malloc(org.lwjgl.system.MemoryStack stack)
Returns a newMeshoptVertexFetchStatisticsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static MeshoptVertexFetchStatistics calloc(org.lwjgl.system.MemoryStack stack)
Returns a newMeshoptVertexFetchStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static MeshoptVertexFetchStatistics.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static MeshoptVertexFetchStatistics.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMeshoptVertexFetchStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nbytes_fetched
public static int nbytes_fetched(long struct)
Unsafe version ofbytes_fetched().
-
noverfetch
public static float noverfetch(long struct)
Unsafe version ofoverfetch().
-
-