public class VkDebugUtilsLabelEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXTpNext must be NULLpLabelName must be a null-terminated UTF-8 stringVkDebugUtilsMessengerCallbackDataEXT, CmdBeginDebugUtilsLabelEXT, CmdInsertDebugUtilsLabelEXT, QueueBeginDebugUtilsLabelEXT, QueueInsertDebugUtilsLabelEXT
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.pLabelName – a pointer to a null-terminated UTF-8 string containing the name of the label.color[4] – an optional RGBA color value that can be associated with the label. A particular implementation may choose to ignore this color value. The values contain RGBA values in order, in the range 0.0 to 1.0. If all elements in color are set to 0.0 then it is ignored.
struct VkDebugUtilsLabelEXT {
VkStructureType sType;
void const * pNext;
char const * pLabelName;
float color[4];
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDebugUtilsLabelEXT.Buffer
An array of
VkDebugUtilsLabelEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COLOR
The struct member offsets.
|
static int |
PLABELNAME
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 |
|---|
VkDebugUtilsLabelEXT(java.nio.ByteBuffer container)
Creates a
VkDebugUtilsLabelEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDebugUtilsLabelEXT |
calloc()
Returns a new
VkDebugUtilsLabelEXT instance allocated with memCalloc. |
static VkDebugUtilsLabelEXT.Buffer |
calloc(int capacity)
Returns a new
VkDebugUtilsLabelEXT.Buffer instance allocated with memCalloc. |
static VkDebugUtilsLabelEXT |
callocStack()
Returns a new
VkDebugUtilsLabelEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDebugUtilsLabelEXT.Buffer |
callocStack(int capacity)
Returns a new
VkDebugUtilsLabelEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDebugUtilsLabelEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugUtilsLabelEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDebugUtilsLabelEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugUtilsLabelEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
java.nio.FloatBuffer |
color()
Returns a
FloatBuffer view of the color field. |
VkDebugUtilsLabelEXT |
color(java.nio.FloatBuffer value)
Copies the specified
FloatBuffer to the color field. |
float |
color(int index)
Returns the value at the specified index of the
color field. |
VkDebugUtilsLabelEXT |
color(int index,
float value)
Sets the specified value at the specified index of the
color field. |
static VkDebugUtilsLabelEXT |
create()
Returns a new
VkDebugUtilsLabelEXT instance allocated with BufferUtils. |
static VkDebugUtilsLabelEXT.Buffer |
create(int capacity)
Returns a new
VkDebugUtilsLabelEXT.Buffer instance allocated with BufferUtils. |
static VkDebugUtilsLabelEXT |
create(long address)
Returns a new
VkDebugUtilsLabelEXT instance for the specified memory address. |
static VkDebugUtilsLabelEXT.Buffer |
create(long address,
int capacity)
Create a
VkDebugUtilsLabelEXT.Buffer instance at the specified memory. |
static VkDebugUtilsLabelEXT |
createSafe(long address)
|
static VkDebugUtilsLabelEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkDebugUtilsLabelEXT |
malloc()
Returns a new
VkDebugUtilsLabelEXT instance allocated with memAlloc. |
static VkDebugUtilsLabelEXT.Buffer |
malloc(int capacity)
Returns a new
VkDebugUtilsLabelEXT.Buffer instance allocated with memAlloc. |
static VkDebugUtilsLabelEXT |
mallocStack()
Returns a new
VkDebugUtilsLabelEXT instance allocated on the thread-local MemoryStack. |
static VkDebugUtilsLabelEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkDebugUtilsLabelEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkDebugUtilsLabelEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugUtilsLabelEXT.Buffer instance allocated on the specified MemoryStack. |
static VkDebugUtilsLabelEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugUtilsLabelEXT instance allocated on the specified MemoryStack. |
static java.nio.FloatBuffer |
ncolor(long struct)
Unsafe version of
color(). |
static void |
ncolor(long struct,
java.nio.FloatBuffer value)
Unsafe version of
color. |
static float |
ncolor(long struct,
int index)
Unsafe version of
color. |
static void |
ncolor(long struct,
int index,
float value)
Unsafe version of
color. |
static java.nio.ByteBuffer |
npLabelName(long struct)
Unsafe version of
pLabelName(). |
static void |
npLabelName(long struct,
java.nio.ByteBuffer value)
Unsafe version of
pLabelName. |
static java.lang.String |
npLabelNameString(long struct)
Unsafe version of
pLabelNameString(). |
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. |
java.nio.ByteBuffer |
pLabelName()
Returns a
ByteBuffer view of the null-terminated string pointed to by the pLabelName field. |
VkDebugUtilsLabelEXT |
pLabelName(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
pLabelName field. |
java.lang.String |
pLabelNameString()
Decodes the null-terminated string pointed to by the
pLabelName field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDebugUtilsLabelEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkDebugUtilsLabelEXT |
set(int sType,
long pNext,
java.nio.ByteBuffer pLabelName,
java.nio.FloatBuffer color)
Initializes this struct with the specified values.
|
VkDebugUtilsLabelEXT |
set(VkDebugUtilsLabelEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDebugUtilsLabelEXT |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int PLABELNAME
public static final int COLOR
public VkDebugUtilsLabelEXT(java.nio.ByteBuffer container)
VkDebugUtilsLabelEXT 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 java.nio.ByteBuffer pLabelName()
ByteBuffer view of the null-terminated string pointed to by the pLabelName field.public java.lang.String pLabelNameString()
pLabelName field.public java.nio.FloatBuffer color()
FloatBuffer view of the color field.public float color(int index)
color field.public VkDebugUtilsLabelEXT sType(int value)
sType field.public VkDebugUtilsLabelEXT pNext(long value)
pNext field.public VkDebugUtilsLabelEXT pLabelName(java.nio.ByteBuffer value)
pLabelName field.public VkDebugUtilsLabelEXT color(java.nio.FloatBuffer value)
FloatBuffer to the color field.public VkDebugUtilsLabelEXT color(int index, float value)
color field.public VkDebugUtilsLabelEXT set(int sType, long pNext, java.nio.ByteBuffer pLabelName, java.nio.FloatBuffer color)
public VkDebugUtilsLabelEXT set(VkDebugUtilsLabelEXT src)
src - the source structpublic static VkDebugUtilsLabelEXT malloc()
VkDebugUtilsLabelEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkDebugUtilsLabelEXT calloc()
VkDebugUtilsLabelEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkDebugUtilsLabelEXT create()
VkDebugUtilsLabelEXT instance allocated with BufferUtils.public static VkDebugUtilsLabelEXT create(long address)
VkDebugUtilsLabelEXT instance for the specified memory address.@Nullable public static VkDebugUtilsLabelEXT createSafe(long address)
public static VkDebugUtilsLabelEXT.Buffer malloc(int capacity)
VkDebugUtilsLabelEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDebugUtilsLabelEXT.Buffer calloc(int capacity)
VkDebugUtilsLabelEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDebugUtilsLabelEXT.Buffer create(int capacity)
VkDebugUtilsLabelEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDebugUtilsLabelEXT.Buffer create(long address, int capacity)
VkDebugUtilsLabelEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDebugUtilsLabelEXT.Buffer createSafe(long address, int capacity)
public static VkDebugUtilsLabelEXT mallocStack()
VkDebugUtilsLabelEXT instance allocated on the thread-local MemoryStack.public static VkDebugUtilsLabelEXT callocStack()
VkDebugUtilsLabelEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDebugUtilsLabelEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkDebugUtilsLabelEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDebugUtilsLabelEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkDebugUtilsLabelEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDebugUtilsLabelEXT.Buffer mallocStack(int capacity)
VkDebugUtilsLabelEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDebugUtilsLabelEXT.Buffer callocStack(int capacity)
VkDebugUtilsLabelEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDebugUtilsLabelEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDebugUtilsLabelEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDebugUtilsLabelEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDebugUtilsLabelEXT.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 java.nio.ByteBuffer npLabelName(long struct)
pLabelName().public static java.lang.String npLabelNameString(long struct)
pLabelNameString().public static java.nio.FloatBuffer ncolor(long struct)
color().public static float ncolor(long struct,
int index)
color.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void npLabelName(long struct,
java.nio.ByteBuffer value)
pLabelName.public static void ncolor(long struct,
java.nio.FloatBuffer value)
color.public static void ncolor(long struct,
int index,
float value)
color.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.