public class MeshoptVertexFetchStatistics
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
overfetch – fetched bytes / vertex buffer size; best case 1.0 (each byte is fetched once)
struct meshopt_VertexFetchStatistics {
unsigned int bytes_fetched;
float overfetch;
}| Modifier and Type | Class and Description |
|---|---|
static class |
MeshoptVertexFetchStatistics.Buffer
An array of
MeshoptVertexFetchStatistics structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BYTES_FETCHED
The struct member offsets.
|
static int |
OVERFETCH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
MeshoptVertexFetchStatistics(java.nio.ByteBuffer container)
Creates a
MeshoptVertexFetchStatistics instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
bytes_fetched()
Returns the value of the
bytes_fetched field. |
static MeshoptVertexFetchStatistics |
calloc()
Returns a new
MeshoptVertexFetchStatistics instance allocated with memCalloc. |
static MeshoptVertexFetchStatistics.Buffer |
calloc(int capacity)
Returns a new
MeshoptVertexFetchStatistics.Buffer instance allocated with memCalloc. |
static MeshoptVertexFetchStatistics |
callocStack()
Returns a new
MeshoptVertexFetchStatistics instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MeshoptVertexFetchStatistics.Buffer |
callocStack(int capacity)
Returns a new
MeshoptVertexFetchStatistics.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static MeshoptVertexFetchStatistics.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptVertexFetchStatistics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MeshoptVertexFetchStatistics |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptVertexFetchStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static MeshoptVertexFetchStatistics |
create()
Returns a new
MeshoptVertexFetchStatistics instance allocated with BufferUtils. |
static MeshoptVertexFetchStatistics.Buffer |
create(int capacity)
Returns a new
MeshoptVertexFetchStatistics.Buffer instance allocated with BufferUtils. |
static MeshoptVertexFetchStatistics |
create(long address)
Returns a new
MeshoptVertexFetchStatistics instance for the specified memory address. |
static MeshoptVertexFetchStatistics.Buffer |
create(long address,
int capacity)
Create a
MeshoptVertexFetchStatistics.Buffer instance at the specified memory. |
static MeshoptVertexFetchStatistics |
createSafe(long address)
|
static MeshoptVertexFetchStatistics.Buffer |
createSafe(long address,
int capacity)
|
static MeshoptVertexFetchStatistics |
malloc()
Returns a new
MeshoptVertexFetchStatistics instance allocated with memAlloc. |
static MeshoptVertexFetchStatistics.Buffer |
malloc(int capacity)
Returns a new
MeshoptVertexFetchStatistics.Buffer instance allocated with memAlloc. |
static MeshoptVertexFetchStatistics |
mallocStack()
Returns a new
MeshoptVertexFetchStatistics instance allocated on the thread-local MemoryStack. |
static MeshoptVertexFetchStatistics.Buffer |
mallocStack(int capacity)
Returns a new
MeshoptVertexFetchStatistics.Buffer instance allocated on the thread-local MemoryStack. |
static MeshoptVertexFetchStatistics.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptVertexFetchStatistics.Buffer instance allocated on the specified MemoryStack. |
static MeshoptVertexFetchStatistics |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
MeshoptVertexFetchStatistics instance allocated on the specified MemoryStack. |
static int |
nbytes_fetched(long struct)
Unsafe version of
bytes_fetched(). |
static float |
noverfetch(long struct)
Unsafe version of
overfetch(). |
float |
overfetch()
Returns the value of the
overfetch field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BYTES_FETCHED
public static final int OVERFETCH
public MeshoptVertexFetchStatistics(java.nio.ByteBuffer container)
MeshoptVertexFetchStatistics 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 bytes_fetched()
bytes_fetched field.public float overfetch()
overfetch field.public static MeshoptVertexFetchStatistics malloc()
MeshoptVertexFetchStatistics instance allocated with memAlloc. The instance must be explicitly freed.public static MeshoptVertexFetchStatistics calloc()
MeshoptVertexFetchStatistics instance allocated with memCalloc. The instance must be explicitly freed.public static MeshoptVertexFetchStatistics create()
MeshoptVertexFetchStatistics instance allocated with BufferUtils.public static MeshoptVertexFetchStatistics create(long address)
MeshoptVertexFetchStatistics instance for the specified memory address.@Nullable public static MeshoptVertexFetchStatistics createSafe(long address)
public static MeshoptVertexFetchStatistics.Buffer malloc(int capacity)
MeshoptVertexFetchStatistics.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MeshoptVertexFetchStatistics.Buffer calloc(int capacity)
MeshoptVertexFetchStatistics.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static MeshoptVertexFetchStatistics.Buffer create(int capacity)
MeshoptVertexFetchStatistics.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static MeshoptVertexFetchStatistics.Buffer create(long address, int capacity)
MeshoptVertexFetchStatistics.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static MeshoptVertexFetchStatistics.Buffer createSafe(long address, int capacity)
public static MeshoptVertexFetchStatistics mallocStack()
MeshoptVertexFetchStatistics instance allocated on the thread-local MemoryStack.public static MeshoptVertexFetchStatistics callocStack()
MeshoptVertexFetchStatistics instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static MeshoptVertexFetchStatistics mallocStack(org.lwjgl.system.MemoryStack stack)
MeshoptVertexFetchStatistics instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static MeshoptVertexFetchStatistics callocStack(org.lwjgl.system.MemoryStack stack)
MeshoptVertexFetchStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static MeshoptVertexFetchStatistics.Buffer mallocStack(int capacity)
MeshoptVertexFetchStatistics.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static MeshoptVertexFetchStatistics.Buffer callocStack(int capacity)
MeshoptVertexFetchStatistics.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static MeshoptVertexFetchStatistics.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MeshoptVertexFetchStatistics.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static MeshoptVertexFetchStatistics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
MeshoptVertexFetchStatistics.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 nbytes_fetched(long struct)
bytes_fetched().public static float noverfetch(long struct)
overfetch().Copyright LWJGL. All Rights Reserved. License terms.