Package org.lwjgl.vulkan
Class VkDebugMarkerObjectNameInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDebugMarkerObjectNameInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDebugMarkerObjectNameInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify parameters of a name to give to an object.Description
Applications may change the name associated with an object simply by calling
vkDebugMarkerSetObjectNameEXTagain with a new string. To remove a previously set name,pObjectNameshould be set to an empty string.Valid Usage
objectTypemust not beDEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXTobjectmust not beNULL_HANDLEobjectmust be a Vulkan object of the type associated withobjectTypeas defined inVkDebugReportObjectTypeEXTand Vulkan Handle Relationship.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXTpNextmust beNULLobjectTypemust be a validVkDebugReportObjectTypeEXTvaluepObjectNamemust be a null-terminated UTF-8 string
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.objectType– aVkDebugReportObjectTypeEXTspecifying the type of the object to be named.object– the object to be named.pObjectName– a null-terminated UTF-8 string specifying the name to apply toobject.
Layout
struct VkDebugMarkerObjectNameInfoEXT { VkStructureType sType; void const * pNext; VkDebugReportObjectTypeEXT objectType; uint64_t object; char const * pObjectName; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDebugMarkerObjectNameInfoEXT.BufferAn array ofVkDebugMarkerObjectNameInfoEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intOBJECT
OBJECTTYPE
PNEXT
POBJECTNAMEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDebugMarkerObjectNameInfoEXT(java.nio.ByteBuffer container)Creates aVkDebugMarkerObjectNameInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDebugMarkerObjectNameInfoEXTcalloc()Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated withmemCalloc.static VkDebugMarkerObjectNameInfoEXT.Buffercalloc(int capacity)Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated withmemCalloc.static VkDebugMarkerObjectNameInfoEXTcallocStack()Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDebugMarkerObjectNameInfoEXT.BuffercallocStack(int capacity)Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDebugMarkerObjectNameInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDebugMarkerObjectNameInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDebugMarkerObjectNameInfoEXTcreate()Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated withBufferUtils.static VkDebugMarkerObjectNameInfoEXT.Buffercreate(int capacity)Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated withBufferUtils.static VkDebugMarkerObjectNameInfoEXTcreate(long address)Returns a newVkDebugMarkerObjectNameInfoEXTinstance for the specified memory address.static VkDebugMarkerObjectNameInfoEXT.Buffercreate(long address, int capacity)Create aVkDebugMarkerObjectNameInfoEXT.Bufferinstance at the specified memory.static VkDebugMarkerObjectNameInfoEXTcreateSafe(long address)static VkDebugMarkerObjectNameInfoEXT.BuffercreateSafe(long address, int capacity)static VkDebugMarkerObjectNameInfoEXTmalloc()Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated withmemAlloc.static VkDebugMarkerObjectNameInfoEXT.Buffermalloc(int capacity)Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated withmemAlloc.static VkDebugMarkerObjectNameInfoEXTmallocStack()Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated on the thread-localMemoryStack.static VkDebugMarkerObjectNameInfoEXT.BuffermallocStack(int capacity)Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkDebugMarkerObjectNameInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDebugMarkerObjectNameInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated on the specifiedMemoryStack.static longnobject(long struct)Unsafe version ofobject().static voidnobject(long struct, long value)Unsafe version ofobject.static intnobjectType(long struct)Unsafe version ofobjectType().static voidnobjectType(long struct, int value)Unsafe version ofobjectType.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.ByteBuffernpObjectName(long struct)Unsafe version ofpObjectName().static voidnpObjectName(long struct, java.nio.ByteBuffer value)Unsafe version ofpObjectName.static java.lang.StringnpObjectNameString(long struct)Unsafe version ofpObjectNameString().static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longobject()Returns the value of theobjectfield.VkDebugMarkerObjectNameInfoEXTobject(long value)Sets the specified value to theobjectfield.intobjectType()Returns the value of theobjectTypefield.VkDebugMarkerObjectNameInfoEXTobjectType(int value)Sets the specified value to theobjectTypefield.longpNext()Returns the value of thepNextfield.VkDebugMarkerObjectNameInfoEXTpNext(long value)Sets the specified value to thepNextfield.java.nio.ByteBufferpObjectName()Returns aByteBufferview of the null-terminated string pointed to by thepObjectNamefield.VkDebugMarkerObjectNameInfoEXTpObjectName(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thepObjectNamefield.java.lang.StringpObjectNameString()Decodes the null-terminated string pointed to by thepObjectNamefield.VkDebugMarkerObjectNameInfoEXTset(int sType, long pNext, int objectType, long object, java.nio.ByteBuffer pObjectName)Initializes this struct with the specified values.VkDebugMarkerObjectNameInfoEXTset(VkDebugMarkerObjectNameInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkDebugMarkerObjectNameInfoEXTsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkDebugMarkerObjectNameInfoEXT
public VkDebugMarkerObjectNameInfoEXT(java.nio.ByteBuffer container)
Creates aVkDebugMarkerObjectNameInfoEXTinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
objectType
public int objectType()
Returns the value of theobjectTypefield.
-
object
public long object()
Returns the value of theobjectfield.
-
pObjectName
public java.nio.ByteBuffer pObjectName()
Returns aByteBufferview of the null-terminated string pointed to by thepObjectNamefield.
-
pObjectNameString
public java.lang.String pObjectNameString()
Decodes the null-terminated string pointed to by thepObjectNamefield.
-
sType
public VkDebugMarkerObjectNameInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDebugMarkerObjectNameInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
objectType
public VkDebugMarkerObjectNameInfoEXT objectType(int value)
Sets the specified value to theobjectTypefield.
-
object
public VkDebugMarkerObjectNameInfoEXT object(long value)
Sets the specified value to theobjectfield.
-
pObjectName
public VkDebugMarkerObjectNameInfoEXT pObjectName(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thepObjectNamefield.
-
set
public VkDebugMarkerObjectNameInfoEXT set(int sType, long pNext, int objectType, long object, java.nio.ByteBuffer pObjectName)
Initializes this struct with the specified values.
-
set
public VkDebugMarkerObjectNameInfoEXT set(VkDebugMarkerObjectNameInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDebugMarkerObjectNameInfoEXT malloc()
Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDebugMarkerObjectNameInfoEXT calloc()
Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDebugMarkerObjectNameInfoEXT create()
Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated withBufferUtils.
-
create
public static VkDebugMarkerObjectNameInfoEXT create(long address)
Returns a newVkDebugMarkerObjectNameInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkDebugMarkerObjectNameInfoEXT createSafe(long address)
-
malloc
public static VkDebugMarkerObjectNameInfoEXT.Buffer malloc(int capacity)
Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDebugMarkerObjectNameInfoEXT.Buffer calloc(int capacity)
Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDebugMarkerObjectNameInfoEXT.Buffer create(int capacity)
Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDebugMarkerObjectNameInfoEXT.Buffer create(long address, int capacity)
Create aVkDebugMarkerObjectNameInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDebugMarkerObjectNameInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDebugMarkerObjectNameInfoEXT mallocStack()
Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDebugMarkerObjectNameInfoEXT callocStack()
Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDebugMarkerObjectNameInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDebugMarkerObjectNameInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugMarkerObjectNameInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDebugMarkerObjectNameInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDebugMarkerObjectNameInfoEXT.Buffer callocStack(int capacity)
Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDebugMarkerObjectNameInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugMarkerObjectNameInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDebugMarkerObjectNameInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDebugMarkerObjectNameInfoEXT.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().
-
nobjectType
public static int nobjectType(long struct)
Unsafe version ofobjectType().
-
nobject
public static long nobject(long struct)
Unsafe version ofobject().
-
npObjectName
public static java.nio.ByteBuffer npObjectName(long struct)
Unsafe version ofpObjectName().
-
npObjectNameString
public static java.lang.String npObjectNameString(long struct)
Unsafe version ofpObjectNameString().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nobjectType
public static void nobjectType(long struct, int value)Unsafe version ofobjectType.
-
nobject
public static void nobject(long struct, long value)Unsafe version ofobject.
-
npObjectName
public static void npObjectName(long struct, java.nio.ByteBuffer value)Unsafe version ofpObjectName.
-
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)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-