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