Package org.lwjgl.vulkan
Class VkDebugMarkerMarkerInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDebugMarkerMarkerInfoEXT
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkDebugMarkerMarkerInfoEXT extends Struct
Passed toCmdDebugMarkerBeginEXT
andCmdDebugMarkerInsertEXT
.Member documentation
sType
– the type of this structure. Must be:STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT
pNext
– reserved for use by extensionspMarkerName
– a pointer to a null-terminated UTF-8 string that contains the name of the markercolor
– an optional RGBA color value that can be associated with the marker. 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 incolor
are set to 0.0 then it is ignored.
Layout
struct VkDebugMarkerMarkerInfoEXT { VkStructureType sType; const void * pNext; const char * pMarkerName; float[4] color; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkDebugMarkerMarkerInfoEXT.Buffer
An array ofVkDebugMarkerMarkerInfoEXT
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkDebugMarkerMarkerInfoEXT(java.nio.ByteBuffer container)
Creates aVkDebugMarkerMarkerInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkDebugMarkerMarkerInfoEXT
calloc()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated withmemCalloc
.static VkDebugMarkerMarkerInfoEXT.Buffer
calloc(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated withmemCalloc
.static VkDebugMarkerMarkerInfoEXT
callocStack()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDebugMarkerMarkerInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDebugMarkerMarkerInfoEXT.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDebugMarkerMarkerInfoEXT
callocStack(MemoryStack stack)
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.java.nio.FloatBuffer
color()
Returns aFloatBuffer
view of thecolor
field.VkDebugMarkerMarkerInfoEXT
color(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to thecolor
field.float
color(int index)
Returns the value at the specified index of thecolor
field.VkDebugMarkerMarkerInfoEXT
color(int index, float value)
Sets the specified value at the specified index of thecolor
field.static VkDebugMarkerMarkerInfoEXT
create()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated withBufferUtils
.static VkDebugMarkerMarkerInfoEXT.Buffer
create(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated withBufferUtils
.static VkDebugMarkerMarkerInfoEXT
create(long address)
Returns a newVkDebugMarkerMarkerInfoEXT
instance for the specified memory address ornull
if the address isNULL
.static VkDebugMarkerMarkerInfoEXT.Buffer
create(long address, int capacity)
Create aVkDebugMarkerMarkerInfoEXT.Buffer
instance at the specified memory.static VkDebugMarkerMarkerInfoEXT
malloc()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated withmemAlloc
.static VkDebugMarkerMarkerInfoEXT.Buffer
malloc(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated withmemAlloc
.static VkDebugMarkerMarkerInfoEXT
mallocStack()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated on the thread-localMemoryStack
.static VkDebugMarkerMarkerInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkDebugMarkerMarkerInfoEXT.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkDebugMarkerMarkerInfoEXT
mallocStack(MemoryStack stack)
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated on the specifiedMemoryStack
.VkDebugMarkerMarkerInfoEXT
nset(long struct)
Unsafe version ofset
.java.nio.ByteBuffer
pMarkerName()
Returns aByteBuffer
view of the null-terminated string pointed to by thepMarkerName
field.VkDebugMarkerMarkerInfoEXT
pMarkerName(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thepMarkerName
field.java.lang.String
pMarkerNameString()
Decodes the null-terminated string pointed to by thepMarkerName
field.long
pNext()
Returns the value of thepNext
field.VkDebugMarkerMarkerInfoEXT
pNext(long value)
Sets the specified value to thepNext
field.VkDebugMarkerMarkerInfoEXT
set(int sType, long pNext, java.nio.ByteBuffer pMarkerName, java.nio.FloatBuffer color)
Initializes this struct with the specified values.VkDebugMarkerMarkerInfoEXT
set(VkDebugMarkerMarkerInfoEXT src)
Copies the specified struct data to this struct.int
sizeof()
Returns thesizeof(struct)
.int
sType()
Returns the value of thesType
field.VkDebugMarkerMarkerInfoEXT
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
CallsVkDebugMarkerMarkerInfoEXT.validate(long)
for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkDebugMarkerMarkerInfoEXT
public VkDebugMarkerMarkerInfoEXT(java.nio.ByteBuffer container)
Creates aVkDebugMarkerMarkerInfoEXT
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
pMarkerName
public java.nio.ByteBuffer pMarkerName()
Returns aByteBuffer
view of the null-terminated string pointed to by thepMarkerName
field.
-
pMarkerNameString
public java.lang.String pMarkerNameString()
Decodes the null-terminated string pointed to by thepMarkerName
field.
-
color
public java.nio.FloatBuffer color()
Returns aFloatBuffer
view of thecolor
field.
-
color
public float color(int index)
Returns the value at the specified index of thecolor
field.
-
sType
public VkDebugMarkerMarkerInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkDebugMarkerMarkerInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
pMarkerName
public VkDebugMarkerMarkerInfoEXT pMarkerName(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thepMarkerName
field.
-
color
public VkDebugMarkerMarkerInfoEXT color(java.nio.FloatBuffer value)
Copies the specifiedFloatBuffer
to thecolor
field.
-
color
public VkDebugMarkerMarkerInfoEXT color(int index, float value)
Sets the specified value at the specified index of thecolor
field.
-
set
public VkDebugMarkerMarkerInfoEXT set(int sType, long pNext, java.nio.ByteBuffer pMarkerName, java.nio.FloatBuffer color)
Initializes this struct with the specified values.
-
nset
public VkDebugMarkerMarkerInfoEXT nset(long struct)
Unsafe version ofset
.
-
set
public VkDebugMarkerMarkerInfoEXT set(VkDebugMarkerMarkerInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkDebugMarkerMarkerInfoEXT malloc()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDebugMarkerMarkerInfoEXT calloc()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDebugMarkerMarkerInfoEXT create()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkDebugMarkerMarkerInfoEXT create(long address)
Returns a newVkDebugMarkerMarkerInfoEXT
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkDebugMarkerMarkerInfoEXT.Buffer malloc(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDebugMarkerMarkerInfoEXT.Buffer calloc(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDebugMarkerMarkerInfoEXT.Buffer create(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDebugMarkerMarkerInfoEXT.Buffer create(long address, int capacity)
Create aVkDebugMarkerMarkerInfoEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkDebugMarkerMarkerInfoEXT mallocStack()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDebugMarkerMarkerInfoEXT callocStack()
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDebugMarkerMarkerInfoEXT mallocStack(MemoryStack stack)
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDebugMarkerMarkerInfoEXT callocStack(MemoryStack stack)
Returns a newVkDebugMarkerMarkerInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkDebugMarkerMarkerInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDebugMarkerMarkerInfoEXT.Buffer callocStack(int capacity)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkDebugMarkerMarkerInfoEXT.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkDebugMarkerMarkerInfoEXT.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkDebugMarkerMarkerInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
CallsVkDebugMarkerMarkerInfoEXT.validate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-