Package org.lwjgl.vulkan
Class VkPerformanceCounterDescriptionKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPerformanceCounterDescriptionKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPerformanceCounterDescriptionKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure providing more detailed information about a counter.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PERFORMANCE_COUNTER_DESCRIPTION_KHRpNextmust beNULL
See Also
EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHRLayout
struct VkPerformanceCounterDescriptionKHR { VkStructureTypesType(); void *pNext(); VkPerformanceCounterDescriptionFlagsKHRflags(); charname()[VK_MAX_DESCRIPTION_SIZE]; charcategory()[VK_MAX_DESCRIPTION_SIZE]; chardescription()[VK_MAX_DESCRIPTION_SIZE]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPerformanceCounterDescriptionKHR.BufferAn array ofVkPerformanceCounterDescriptionKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkPerformanceCounterDescriptionKHR(java.nio.ByteBuffer container)Creates aVkPerformanceCounterDescriptionKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPerformanceCounterDescriptionKHRcalloc()Returns a newVkPerformanceCounterDescriptionKHRinstance allocated withmemCalloc.static VkPerformanceCounterDescriptionKHR.Buffercalloc(int capacity)Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated withmemCalloc.static VkPerformanceCounterDescriptionKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPerformanceCounterDescriptionKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceCounterDescriptionKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.java.nio.ByteBuffercategory()an array of sizeMAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the category of the counter.java.lang.StringcategoryString()an array of sizeMAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the category of the counter.static VkPerformanceCounterDescriptionKHRcreate()Returns a newVkPerformanceCounterDescriptionKHRinstance allocated withBufferUtils.static VkPerformanceCounterDescriptionKHR.Buffercreate(int capacity)Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated withBufferUtils.static VkPerformanceCounterDescriptionKHRcreate(long address)Returns a newVkPerformanceCounterDescriptionKHRinstance for the specified memory address.static VkPerformanceCounterDescriptionKHR.Buffercreate(long address, int capacity)Create aVkPerformanceCounterDescriptionKHR.Bufferinstance at the specified memory.static VkPerformanceCounterDescriptionKHRcreateSafe(long address)static VkPerformanceCounterDescriptionKHR.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferdescription()an array of sizeMAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the description of the counter.java.lang.StringdescriptionString()an array of sizeMAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the description of the counter.intflags()a bitmask ofVkPerformanceCounterDescriptionFlagBitsKHRindicating the usage behavior for the counter.static VkPerformanceCounterDescriptionKHRmalloc()Returns a newVkPerformanceCounterDescriptionKHRinstance allocated withmemAlloc.static VkPerformanceCounterDescriptionKHR.Buffermalloc(int capacity)Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated withmemAlloc.static VkPerformanceCounterDescriptionKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPerformanceCounterDescriptionKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPerformanceCounterDescriptionKHRinstance allocated on the specifiedMemoryStack.java.nio.ByteBuffername()an array of sizeMAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the name of the counter.java.lang.StringnameString()an array of sizeMAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the name of the counter.static java.nio.ByteBufferncategory(long struct)Unsafe version ofcategory().static java.lang.StringncategoryString(long struct)Unsafe version ofcategoryString().static java.nio.ByteBufferndescription(long struct)Unsafe version ofdescription().static java.lang.StringndescriptionString(long struct)Unsafe version ofdescriptionString().static intnflags(long struct)Unsafe version offlags().static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static java.lang.StringnnameString(long struct)Unsafe version ofnameString().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkPerformanceCounterDescriptionKHRpNext(long value)Sets the specified value to thepNext()field.VkPerformanceCounterDescriptionKHRset(int sType, long pNext)Initializes this struct with the specified values.VkPerformanceCounterDescriptionKHRset(VkPerformanceCounterDescriptionKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPerformanceCounterDescriptionKHRsType(int value)Sets the specified value to thesType()field.VkPerformanceCounterDescriptionKHRsType$Default()Sets theSTRUCTURE_TYPE_PERFORMANCE_COUNTER_DESCRIPTION_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPerformanceCounterDescriptionKHR
public VkPerformanceCounterDescriptionKHR(java.nio.ByteBuffer container)
Creates aVkPerformanceCounterDescriptionKHRinstance 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
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
a bitmask ofVkPerformanceCounterDescriptionFlagBitsKHRindicating the usage behavior for the counter.
-
name, nameString
public java.nio.ByteBuffer name() public java.lang.String nameString()
an array of sizeMAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the name of the counter.
-
category, categoryString
public java.nio.ByteBuffer category() public java.lang.String categoryString()
an array of sizeMAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the category of the counter.
-
description, descriptionString
public java.nio.ByteBuffer description() public java.lang.String descriptionString()
an array of sizeMAX_DESCRIPTION_SIZE, containing a null-terminated UTF-8 string specifying the description of the counter.
-
sType
public VkPerformanceCounterDescriptionKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPerformanceCounterDescriptionKHR sType$Default()
Sets theSTRUCTURE_TYPE_PERFORMANCE_COUNTER_DESCRIPTION_KHRvalue to thesType()field.
-
pNext
public VkPerformanceCounterDescriptionKHR pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPerformanceCounterDescriptionKHR set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPerformanceCounterDescriptionKHR set(VkPerformanceCounterDescriptionKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPerformanceCounterDescriptionKHR malloc()
Returns a newVkPerformanceCounterDescriptionKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPerformanceCounterDescriptionKHR calloc()
Returns a newVkPerformanceCounterDescriptionKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPerformanceCounterDescriptionKHR create()
Returns a newVkPerformanceCounterDescriptionKHRinstance allocated withBufferUtils.
-
create
public static VkPerformanceCounterDescriptionKHR create(long address)
Returns a newVkPerformanceCounterDescriptionKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPerformanceCounterDescriptionKHR createSafe(long address)
-
malloc
public static VkPerformanceCounterDescriptionKHR.Buffer malloc(int capacity)
Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPerformanceCounterDescriptionKHR.Buffer calloc(int capacity)
Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceCounterDescriptionKHR.Buffer create(int capacity)
Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPerformanceCounterDescriptionKHR.Buffer create(long address, int capacity)
Create aVkPerformanceCounterDescriptionKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPerformanceCounterDescriptionKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPerformanceCounterDescriptionKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceCounterDescriptionKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPerformanceCounterDescriptionKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceCounterDescriptionKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPerformanceCounterDescriptionKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPerformanceCounterDescriptionKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPerformanceCounterDescriptionKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
ncategory
public static java.nio.ByteBuffer ncategory(long struct)
Unsafe version ofcategory().
-
ncategoryString
public static java.lang.String ncategoryString(long struct)
Unsafe version ofcategoryString().
-
ndescription
public static java.nio.ByteBuffer ndescription(long struct)
Unsafe version ofdescription().
-
ndescriptionString
public static java.lang.String ndescriptionString(long struct)
Unsafe version ofdescriptionString().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-