public class VkPerformanceCounterKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_PERFORMANCE_COUNTER_KHRpNext must be NULLEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.unit – a VkPerformanceCounterUnitKHR specifying the unit that the counter data will record.scope – a VkPerformanceCounterScopeKHR specifying the scope that the counter belongs to.storage – a VkPerformanceCounterStorageKHR specifying the storage type that the counter’s data uses.uuid[VK_UUID_SIZE] – an array of size UUID_SIZE, containing 8-bit values that represent a universally unique identifier for the counter of the physical device.
struct VkPerformanceCounterKHR {
VkStructureType sType;
void const * pNext;
VkPerformanceCounterUnitKHR unit;
VkPerformanceCounterScopeKHR scope;
VkPerformanceCounterStorageKHR storage;
uint8_t uuid[VK_UUID_SIZE];
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPerformanceCounterKHR.Buffer
An array of
VkPerformanceCounterKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SCOPE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STORAGE
The struct member offsets.
|
static int |
STYPE
The struct member offsets.
|
static int |
UNIT
The struct member offsets.
|
static int |
UUID
The struct member offsets.
|
| Constructor and Description |
|---|
VkPerformanceCounterKHR(java.nio.ByteBuffer container)
Creates a
VkPerformanceCounterKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPerformanceCounterKHR |
calloc()
Returns a new
VkPerformanceCounterKHR instance allocated with memCalloc. |
static VkPerformanceCounterKHR.Buffer |
calloc(int capacity)
Returns a new
VkPerformanceCounterKHR.Buffer instance allocated with memCalloc. |
static VkPerformanceCounterKHR |
callocStack()
Returns a new
VkPerformanceCounterKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPerformanceCounterKHR.Buffer |
callocStack(int capacity)
Returns a new
VkPerformanceCounterKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPerformanceCounterKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceCounterKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPerformanceCounterKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceCounterKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPerformanceCounterKHR |
create()
Returns a new
VkPerformanceCounterKHR instance allocated with BufferUtils. |
static VkPerformanceCounterKHR.Buffer |
create(int capacity)
Returns a new
VkPerformanceCounterKHR.Buffer instance allocated with BufferUtils. |
static VkPerformanceCounterKHR |
create(long address)
Returns a new
VkPerformanceCounterKHR instance for the specified memory address. |
static VkPerformanceCounterKHR.Buffer |
create(long address,
int capacity)
Create a
VkPerformanceCounterKHR.Buffer instance at the specified memory. |
static VkPerformanceCounterKHR |
createSafe(long address)
|
static VkPerformanceCounterKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkPerformanceCounterKHR |
malloc()
Returns a new
VkPerformanceCounterKHR instance allocated with memAlloc. |
static VkPerformanceCounterKHR.Buffer |
malloc(int capacity)
Returns a new
VkPerformanceCounterKHR.Buffer instance allocated with memAlloc. |
static VkPerformanceCounterKHR |
mallocStack()
Returns a new
VkPerformanceCounterKHR instance allocated on the thread-local MemoryStack. |
static VkPerformanceCounterKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkPerformanceCounterKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkPerformanceCounterKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceCounterKHR.Buffer instance allocated on the specified MemoryStack. |
static VkPerformanceCounterKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceCounterKHR instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nscope(long struct)
Unsafe version of
scope(). |
static int |
nstorage(long struct)
Unsafe version of
storage(). |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nunit(long struct)
Unsafe version of
unit(). |
static java.nio.ByteBuffer |
nuuid(long struct)
Unsafe version of
uuid(). |
static byte |
nuuid(long struct,
int index)
Unsafe version of
uuid. |
long |
pNext()
Returns the value of the
pNext field. |
VkPerformanceCounterKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
int |
scope()
Returns the value of the
scope field. |
VkPerformanceCounterKHR |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkPerformanceCounterKHR |
set(VkPerformanceCounterKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
storage()
Returns the value of the
storage field. |
int |
sType()
Returns the value of the
sType field. |
VkPerformanceCounterKHR |
sType(int value)
Sets the specified value to the
sType field. |
int |
unit()
Returns the value of the
unit field. |
java.nio.ByteBuffer |
uuid()
Returns a
ByteBuffer view of the uuid field. |
byte |
uuid(int index)
Returns the value at the specified index of the
uuid field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int UNIT
public static final int SCOPE
public static final int STORAGE
public static final int UUID
public VkPerformanceCounterKHR(java.nio.ByteBuffer container)
VkPerformanceCounterKHR 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 sType()
sType field.public long pNext()
pNext field.public int unit()
unit field.public int scope()
scope field.public int storage()
storage field.public java.nio.ByteBuffer uuid()
ByteBuffer view of the uuid field.public byte uuid(int index)
uuid field.public VkPerformanceCounterKHR sType(int value)
sType field.public VkPerformanceCounterKHR pNext(long value)
pNext field.public VkPerformanceCounterKHR set(int sType, long pNext)
public VkPerformanceCounterKHR set(VkPerformanceCounterKHR src)
src - the source structpublic static VkPerformanceCounterKHR malloc()
VkPerformanceCounterKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkPerformanceCounterKHR calloc()
VkPerformanceCounterKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkPerformanceCounterKHR create()
VkPerformanceCounterKHR instance allocated with BufferUtils.public static VkPerformanceCounterKHR create(long address)
VkPerformanceCounterKHR instance for the specified memory address.@Nullable public static VkPerformanceCounterKHR createSafe(long address)
public static VkPerformanceCounterKHR.Buffer malloc(int capacity)
VkPerformanceCounterKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPerformanceCounterKHR.Buffer calloc(int capacity)
VkPerformanceCounterKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPerformanceCounterKHR.Buffer create(int capacity)
VkPerformanceCounterKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPerformanceCounterKHR.Buffer create(long address, int capacity)
VkPerformanceCounterKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPerformanceCounterKHR.Buffer createSafe(long address, int capacity)
public static VkPerformanceCounterKHR mallocStack()
VkPerformanceCounterKHR instance allocated on the thread-local MemoryStack.public static VkPerformanceCounterKHR callocStack()
VkPerformanceCounterKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPerformanceCounterKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkPerformanceCounterKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPerformanceCounterKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkPerformanceCounterKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPerformanceCounterKHR.Buffer mallocStack(int capacity)
VkPerformanceCounterKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPerformanceCounterKHR.Buffer callocStack(int capacity)
VkPerformanceCounterKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPerformanceCounterKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPerformanceCounterKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPerformanceCounterKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPerformanceCounterKHR.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 nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nunit(long struct)
unit().public static int nscope(long struct)
scope().public static int nstorage(long struct)
storage().public static java.nio.ByteBuffer nuuid(long struct)
uuid().public static byte nuuid(long struct,
int index)
uuid.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.