public class VkPerformanceCounterDescriptionKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_PERFORMANCE_COUNTER_DESCRIPTION_KHRpNext must be NULLEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkPerformanceCounterDescriptionFlagBitsKHR indicating the usage behavior for the counter.name[VK_MAX_DESCRIPTION_SIZE] – an array of size MAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the name of the counter.category[VK_MAX_DESCRIPTION_SIZE] – an array of size MAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the category of the counter.description[VK_MAX_DESCRIPTION_SIZE] – an array of size MAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the description of the counter.
struct VkPerformanceCounterDescriptionKHR {
VkStructureType sType;
void const * pNext;
VkPerformanceCounterDescriptionFlagsKHR flags;
char name[VK_MAX_DESCRIPTION_SIZE];
char category[VK_MAX_DESCRIPTION_SIZE];
char description[VK_MAX_DESCRIPTION_SIZE];
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPerformanceCounterDescriptionKHR.Buffer
An array of
VkPerformanceCounterDescriptionKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CATEGORY
The struct member offsets.
|
static int |
DESCRIPTION
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
NAME
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPerformanceCounterDescriptionKHR(java.nio.ByteBuffer container)
Creates a
VkPerformanceCounterDescriptionKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPerformanceCounterDescriptionKHR |
calloc()
Returns a new
VkPerformanceCounterDescriptionKHR instance allocated with memCalloc. |
static VkPerformanceCounterDescriptionKHR.Buffer |
calloc(int capacity)
Returns a new
VkPerformanceCounterDescriptionKHR.Buffer instance allocated with memCalloc. |
static VkPerformanceCounterDescriptionKHR |
callocStack()
Returns a new
VkPerformanceCounterDescriptionKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPerformanceCounterDescriptionKHR.Buffer |
callocStack(int capacity)
Returns a new
VkPerformanceCounterDescriptionKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPerformanceCounterDescriptionKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceCounterDescriptionKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPerformanceCounterDescriptionKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceCounterDescriptionKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
java.nio.ByteBuffer |
category()
Returns a
ByteBuffer view of the category field. |
java.lang.String |
categoryString()
Decodes the null-terminated string stored in the
category field. |
static VkPerformanceCounterDescriptionKHR |
create()
Returns a new
VkPerformanceCounterDescriptionKHR instance allocated with BufferUtils. |
static VkPerformanceCounterDescriptionKHR.Buffer |
create(int capacity)
Returns a new
VkPerformanceCounterDescriptionKHR.Buffer instance allocated with BufferUtils. |
static VkPerformanceCounterDescriptionKHR |
create(long address)
Returns a new
VkPerformanceCounterDescriptionKHR instance for the specified memory address. |
static VkPerformanceCounterDescriptionKHR.Buffer |
create(long address,
int capacity)
Create a
VkPerformanceCounterDescriptionKHR.Buffer instance at the specified memory. |
static VkPerformanceCounterDescriptionKHR |
createSafe(long address)
|
static VkPerformanceCounterDescriptionKHR.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
description()
Returns a
ByteBuffer view of the description field. |
java.lang.String |
descriptionString()
Decodes the null-terminated string stored in the
description field. |
int |
flags()
Returns the value of the
flags field. |
static VkPerformanceCounterDescriptionKHR |
malloc()
Returns a new
VkPerformanceCounterDescriptionKHR instance allocated with memAlloc. |
static VkPerformanceCounterDescriptionKHR.Buffer |
malloc(int capacity)
Returns a new
VkPerformanceCounterDescriptionKHR.Buffer instance allocated with memAlloc. |
static VkPerformanceCounterDescriptionKHR |
mallocStack()
Returns a new
VkPerformanceCounterDescriptionKHR instance allocated on the thread-local MemoryStack. |
static VkPerformanceCounterDescriptionKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkPerformanceCounterDescriptionKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkPerformanceCounterDescriptionKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceCounterDescriptionKHR.Buffer instance allocated on the specified MemoryStack. |
static VkPerformanceCounterDescriptionKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPerformanceCounterDescriptionKHR instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
name()
Returns a
ByteBuffer view of the name field. |
java.lang.String |
nameString()
Decodes the null-terminated string stored in the
name field. |
static java.nio.ByteBuffer |
ncategory(long struct)
Unsafe version of
category(). |
static java.lang.String |
ncategoryString(long struct)
Unsafe version of
categoryString(). |
static java.nio.ByteBuffer |
ndescription(long struct)
Unsafe version of
description(). |
static java.lang.String |
ndescriptionString(long struct)
Unsafe version of
descriptionString(). |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static java.nio.ByteBuffer |
nname(long struct)
Unsafe version of
name(). |
static java.lang.String |
nnameString(long struct)
Unsafe version of
nameString(). |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPerformanceCounterDescriptionKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPerformanceCounterDescriptionKHR |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkPerformanceCounterDescriptionKHR |
set(VkPerformanceCounterDescriptionKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPerformanceCounterDescriptionKHR |
sType(int value)
Sets the specified value to the
sType 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 FLAGS
public static final int NAME
public static final int CATEGORY
public static final int DESCRIPTION
public VkPerformanceCounterDescriptionKHR(java.nio.ByteBuffer container)
VkPerformanceCounterDescriptionKHR 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 flags()
flags field.public java.nio.ByteBuffer name()
ByteBuffer view of the name field.public java.lang.String nameString()
name field.public java.nio.ByteBuffer category()
ByteBuffer view of the category field.public java.lang.String categoryString()
category field.public java.nio.ByteBuffer description()
ByteBuffer view of the description field.public java.lang.String descriptionString()
description field.public VkPerformanceCounterDescriptionKHR sType(int value)
sType field.public VkPerformanceCounterDescriptionKHR pNext(long value)
pNext field.public VkPerformanceCounterDescriptionKHR set(int sType, long pNext)
public VkPerformanceCounterDescriptionKHR set(VkPerformanceCounterDescriptionKHR src)
src - the source structpublic static VkPerformanceCounterDescriptionKHR malloc()
VkPerformanceCounterDescriptionKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkPerformanceCounterDescriptionKHR calloc()
VkPerformanceCounterDescriptionKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkPerformanceCounterDescriptionKHR create()
VkPerformanceCounterDescriptionKHR instance allocated with BufferUtils.public static VkPerformanceCounterDescriptionKHR create(long address)
VkPerformanceCounterDescriptionKHR instance for the specified memory address.@Nullable public static VkPerformanceCounterDescriptionKHR createSafe(long address)
public static VkPerformanceCounterDescriptionKHR.Buffer malloc(int capacity)
VkPerformanceCounterDescriptionKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPerformanceCounterDescriptionKHR.Buffer calloc(int capacity)
VkPerformanceCounterDescriptionKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPerformanceCounterDescriptionKHR.Buffer create(int capacity)
VkPerformanceCounterDescriptionKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPerformanceCounterDescriptionKHR.Buffer create(long address, int capacity)
VkPerformanceCounterDescriptionKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPerformanceCounterDescriptionKHR.Buffer createSafe(long address, int capacity)
public static VkPerformanceCounterDescriptionKHR mallocStack()
VkPerformanceCounterDescriptionKHR instance allocated on the thread-local MemoryStack.public static VkPerformanceCounterDescriptionKHR callocStack()
VkPerformanceCounterDescriptionKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPerformanceCounterDescriptionKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkPerformanceCounterDescriptionKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPerformanceCounterDescriptionKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkPerformanceCounterDescriptionKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPerformanceCounterDescriptionKHR.Buffer mallocStack(int capacity)
VkPerformanceCounterDescriptionKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPerformanceCounterDescriptionKHR.Buffer callocStack(int capacity)
VkPerformanceCounterDescriptionKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPerformanceCounterDescriptionKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPerformanceCounterDescriptionKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPerformanceCounterDescriptionKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPerformanceCounterDescriptionKHR.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 nflags(long struct)
flags().public static java.nio.ByteBuffer nname(long struct)
name().public static java.lang.String nnameString(long struct)
nameString().public static java.nio.ByteBuffer ncategory(long struct)
category().public static java.lang.String ncategoryString(long struct)
categoryString().public static java.nio.ByteBuffer ndescription(long struct)
description().public static java.lang.String ndescriptionString(long struct)
descriptionString().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.