For each VkDebugUtilsMessengerEXT that is created the VkDebugUtilsMessengerCreateInfoEXT::messageSeverity and VkDebugUtilsMessengerCreateInfoEXT::messageType determine when that VkDebugUtilsMessengerCreateInfoEXT::pfnUserCallback is called. The process to determine if the user’s pfnUserCallback is triggered when an event occurs is as follows:
VkDebugUtilsMessageSeverityFlagBitsEXT with the messageSeverity provided during creation of the VkDebugUtilsMessengerEXT object.
VkDebugUtilsMessageTypeFlagBitsEXT with the messageType provided during the creation of the VkDebugUtilsMessengerEXT object.
The callback will come directly from the component that detected the event, unless some other layer intercepts the calls for its own purposes (filter them in a different way, log to a system error log, etc.).
An application can receive multiple callbacks if multiple VkDebugUtilsMessengerEXT objects are created. A callback will always be executed in the same thread as the originating Vulkan call.
A callback can be called from multiple threads simultaneously (if the application is making Vulkan calls from multiple threads).
pfnUserCallback must be a valid VkDebugUtilsMessengerCallbackEXTsType must be STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXTflags must be 0messageSeverity must be a valid combination of VkDebugUtilsMessageSeverityFlagBitsEXT valuesmessageSeverity must not be 0messageType must be a valid combination of VkDebugUtilsMessageTypeFlagBitsEXT valuesmessageType must not be 0pfnUserCallback must be a valid VkDebugUtilsMessengerCallbackEXT valueVkDebugUtilsMessengerCallbackEXT, CreateDebugUtilsMessengerEXT
struct VkDebugUtilsMessengerCreateInfoEXT {
VkStructureType sType;
void const * pNext;
VkDebugUtilsMessengerCreateFlagsEXT flags;
VkDebugUtilsMessageSeverityFlagsEXT messageSeverity;
VkDebugUtilsMessageTypeFlagsEXT messageType;
PFN_vkDebugUtilsMessengerCallbackEXT pfnUserCallback;
void * pUserData;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkDebugUtilsMessengerCreateInfoEXT.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | MESSAGESEVERITY
The struct member offsets. |
| public static final int | MESSAGETYPE
The struct member offsets. |
| public static final int | PFNUSERCALLBACK
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | PUSERDATA
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkDebugUtilsMessengerCreateInfoEXT(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT | |
| public static VkDebugUtilsMessengerCreateInfoEXT. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkDebugUtilsMessengerCreateInfoEXT | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDebugUtilsMessengerCreateInfoEXT. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDebugUtilsMessengerCreateInfoEXT | |
| public static VkDebugUtilsMessengerCreateInfoEXT | |
| public static VkDebugUtilsMessengerCreateInfoEXT. | |
| public static VkDebugUtilsMessengerCreateInfoEXT. | |
| protected VkDebugUtilsMessengerCreateInfoEXT | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkDebugUtilsMessengerCreateInfoEXT | |
| public static VkDebugUtilsMessengerCreateInfoEXT | create(long address)
Returns a new |
| public static VkDebugUtilsMessengerCreateInfoEXT. | create(int
the buffer capacity capacity)Returns a new |
| public static VkDebugUtilsMessengerCreateInfoEXT. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkDebugUtilsMessengerCreateInfoEXT | |
| public static VkDebugUtilsMessengerCreateInfoEXT. | |
| public int | |
| public VkDebugUtilsMessengerCreateInfoEXT | |
| public static VkDebugUtilsMessengerCreateInfoEXT | |
| public static VkDebugUtilsMessengerCreateInfoEXT. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkDebugUtilsMessengerCreateInfoEXT | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkDebugUtilsMessengerCreateInfoEXT. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkDebugUtilsMessengerCreateInfoEXT | |
| public static VkDebugUtilsMessengerCreateInfoEXT | |
| public static VkDebugUtilsMessengerCreateInfoEXT. | |
| public static VkDebugUtilsMessengerCreateInfoEXT. | |
| public int | messageSeverity()
a bitmask of |
| public VkDebugUtilsMessengerCreateInfoEXT | |
| public int | messageType()
a bitmask of |
| public VkDebugUtilsMessengerCreateInfoEXT | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static VkDebugUtilsMessengerCallbackEXT | |
| public static void | npfnUserCallback(long struct, VkDebugUtilsMessengerCallbackEXTI value)
Unsafe version of |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public VkDebugUtilsMessengerCallbackEXT | |
| public VkDebugUtilsMessengerCreateInfoEXT | pfnUserCallback(VkDebugUtilsMessengerCallbackEXTI value)
Sets the specified value to the |
| public long | |
| public VkDebugUtilsMessengerCreateInfoEXT | |
| public long | |
| public VkDebugUtilsMessengerCreateInfoEXT | |
| public VkDebugUtilsMessengerCreateInfoEXT | set(int sType, long pNext, int flags, int messageSeverity, int messageType, VkDebugUtilsMessengerCallbackEXTI pfnUserCallback, long pUserData)
Initializes this struct with the specified values. |
| public VkDebugUtilsMessengerCreateInfoEXT | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkDebugUtilsMessengerCreateInfoEXT | |
| public VkDebugUtilsMessengerCreateInfoEXT | sType$Default()
Sets the |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| MESSAGESEVERITY | back to summary |
|---|---|
| public static final int MESSAGESEVERITY The struct member offsets. | |
| MESSAGETYPE | back to summary |
|---|---|
| public static final int MESSAGETYPE The struct member offsets. | |
| PFNUSERCALLBACK | back to summary |
|---|---|
| public static final int PFNUSERCALLBACK The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| PUSERDATA | back to summary |
|---|---|
| public static final int PUSERDATA The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| VkDebugUtilsMessengerCreateInfoEXT | back to summary |
|---|---|
| protected VkDebugUtilsMessengerCreateInfoEXT(long address, ByteBuffer container) | |
| VkDebugUtilsMessengerCreateInfoEXT | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkDebugUtilsMessengerCreateInfoEXT create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Like
| |
| flags | back to summary |
|---|---|
| public int flags() 0 and is reserved for future use.
| |
| flags | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT flags(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCreateInfoEXT. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| messageSeverity | back to summary |
|---|---|
| public int messageSeverity() a bitmask of
| |
| messageSeverity | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT messageSeverity(int value) Sets the specified value to the | |
| messageType | back to summary |
|---|---|
| public int messageType() a bitmask of
| |
| messageType | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT messageType(int value) Sets the specified value to the | |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, int value) Unsafe version of | |
| nmessageSeverity | back to summary |
|---|---|
| public static int nmessageSeverity(long struct) Unsafe version of | |
| nmessageSeverity | back to summary |
|---|---|
| public static void nmessageSeverity(long struct, int value) Unsafe version of | |
| nmessageType | back to summary |
|---|---|
| public static int nmessageType(long struct) Unsafe version of | |
| nmessageType | back to summary |
|---|---|
| public static void nmessageType(long struct, int value) Unsafe version of | |
| npfnUserCallback | back to summary |
|---|---|
| public static VkDebugUtilsMessengerCallbackEXT npfnUserCallback(long struct) Unsafe version of | |
| npfnUserCallback | back to summary |
|---|---|
| public static void npfnUserCallback(long struct, VkDebugUtilsMessengerCallbackEXTI value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| npUserData | back to summary |
|---|---|
| public static long npUserData(long struct) Unsafe version of | |
| npUserData | back to summary |
|---|---|
| public static void npUserData(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| pfnUserCallback | back to summary |
|---|---|
| public VkDebugUtilsMessengerCallbackEXT pfnUserCallback() the application callback function to call.
| |
| pfnUserCallback | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT pfnUserCallback(VkDebugUtilsMessengerCallbackEXTI value) Sets the specified value to the | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT pNext(long value) Sets the specified value to the | |
| pUserData | back to summary |
|---|---|
| public long pUserData() user data to be passed to the callback.
| |
| pUserData | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT pUserData(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT set(int sType, long pNext, int flags, int messageSeverity, int messageType, VkDebugUtilsMessengerCallbackEXTI pfnUserCallback, long pUserData) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT set(VkDebugUtilsMessengerCreateInfoEXT src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT sType$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
VkDebugUtilsMessengerCreateInfoEXT structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkDebugUtilsMessengerCreateInfoEXT |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkDebugUtilsMessengerCreateInfoEXT ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| flags | back to summary |
|---|---|
public int flags()
| |
| flags | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkDebugUtilsMessengerCreateInfoEXT getElementFactory() Implements abstract org.
| |
| messageSeverity | back to summary |
|---|---|
public int messageSeverity()
| |
| messageSeverity | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT. Sets the specified value to the | |
| messageType | back to summary |
|---|---|
public int messageType()
| |
| messageType | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT. Sets the specified value to the | |
| pfnUserCallback | back to summary |
|---|---|
public VkDebugUtilsMessengerCallbackEXT pfnUserCallback()
| |
| pfnUserCallback | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT. Sets the specified value to the | |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT. Sets the specified value to the | |
| pUserData | back to summary |
|---|---|
public long pUserData()
| |
| pUserData | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkDebugUtilsMessengerCreateInfoEXT. Implements abstract org.
| |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkDebugUtilsMessengerCreateInfoEXT. Sets the | |