public class VkDebugUtilsMessengerCreateInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – 0 and reserved for future use.messageSeverity – a bitmask of VkDebugUtilsMessageSeverityFlagBitsEXT specifying which severity of event(s) will cause this callback to be called.messageType – a bitmask of VkDebugUtilsMessageTypeFlagBitsEXT specifying which type of event(s) will cause this callback to be called.pfnUserCallback – the application callback function to call.pUserData – user data to be passed to the callback.
struct VkDebugUtilsMessengerCreateInfoEXT {
VkStructureType sType;
void const * pNext;
VkDebugUtilsMessengerCreateFlagsEXT flags;
VkDebugUtilsMessageSeverityFlagsEXT messageSeverity;
VkDebugUtilsMessageTypeFlagsEXT messageType;
PFN_vkDebugUtilsMessengerCallbackEXT pfnUserCallback;
void * pUserData;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDebugUtilsMessengerCreateInfoEXT.Buffer
An array of
VkDebugUtilsMessengerCreateInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
MESSAGESEVERITY
The struct member offsets.
|
static int |
MESSAGETYPE
The struct member offsets.
|
static int |
PFNUSERCALLBACK
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PUSERDATA
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkDebugUtilsMessengerCreateInfoEXT(java.nio.ByteBuffer container)
Creates a
VkDebugUtilsMessengerCreateInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDebugUtilsMessengerCreateInfoEXT |
calloc()
Returns a new
VkDebugUtilsMessengerCreateInfoEXT instance allocated with memCalloc. |
static VkDebugUtilsMessengerCreateInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated with memCalloc. |
static VkDebugUtilsMessengerCreateInfoEXT |
callocStack()
Returns a new
VkDebugUtilsMessengerCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDebugUtilsMessengerCreateInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDebugUtilsMessengerCreateInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDebugUtilsMessengerCreateInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDebugUtilsMessengerCreateInfoEXT |
create()
Returns a new
VkDebugUtilsMessengerCreateInfoEXT instance allocated with BufferUtils. |
static VkDebugUtilsMessengerCreateInfoEXT.Buffer |
create(int capacity)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated with BufferUtils. |
static VkDebugUtilsMessengerCreateInfoEXT |
create(long address)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT instance for the specified memory address. |
static VkDebugUtilsMessengerCreateInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance at the specified memory. |
static VkDebugUtilsMessengerCreateInfoEXT |
createSafe(long address)
|
static VkDebugUtilsMessengerCreateInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkDebugUtilsMessengerCreateInfoEXT |
flags(int value)
Sets the specified value to the
flags field. |
static VkDebugUtilsMessengerCreateInfoEXT |
malloc()
Returns a new
VkDebugUtilsMessengerCreateInfoEXT instance allocated with memAlloc. |
static VkDebugUtilsMessengerCreateInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated with memAlloc. |
static VkDebugUtilsMessengerCreateInfoEXT |
mallocStack()
Returns a new
VkDebugUtilsMessengerCreateInfoEXT instance allocated on the thread-local MemoryStack. |
static VkDebugUtilsMessengerCreateInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkDebugUtilsMessengerCreateInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkDebugUtilsMessengerCreateInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDebugUtilsMessengerCreateInfoEXT instance allocated on the specified MemoryStack. |
int |
messageSeverity()
Returns the value of the
messageSeverity field. |
VkDebugUtilsMessengerCreateInfoEXT |
messageSeverity(int value)
Sets the specified value to the
messageSeverity field. |
int |
messageType()
Returns the value of the
messageType field. |
VkDebugUtilsMessengerCreateInfoEXT |
messageType(int value)
Sets the specified value to the
messageType field. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nmessageSeverity(long struct)
Unsafe version of
messageSeverity(). |
static void |
nmessageSeverity(long struct,
int value)
Unsafe version of
messageSeverity. |
static int |
nmessageType(long struct)
Unsafe version of
messageType(). |
static void |
nmessageType(long struct,
int value)
Unsafe version of
messageType. |
static VkDebugUtilsMessengerCallbackEXT |
npfnUserCallback(long struct)
Unsafe version of
pfnUserCallback(). |
static void |
npfnUserCallback(long struct,
VkDebugUtilsMessengerCallbackEXTI value)
Unsafe version of
pfnUserCallback. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static long |
npUserData(long struct)
Unsafe version of
pUserData(). |
static void |
npUserData(long struct,
long value)
Unsafe version of
pUserData. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkDebugUtilsMessengerCallbackEXT |
pfnUserCallback()
Returns the value of the
pfnUserCallback field. |
VkDebugUtilsMessengerCreateInfoEXT |
pfnUserCallback(VkDebugUtilsMessengerCallbackEXTI value)
Sets the specified value to the
pfnUserCallback field. |
long |
pNext()
Returns the value of the
pNext field. |
VkDebugUtilsMessengerCreateInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
long |
pUserData()
Returns the value of the
pUserData field. |
VkDebugUtilsMessengerCreateInfoEXT |
pUserData(long value)
Sets the specified value to the
pUserData field. |
VkDebugUtilsMessengerCreateInfoEXT |
set(int sType,
long pNext,
int flags,
int messageSeverity,
int messageType,
VkDebugUtilsMessengerCallbackEXTI pfnUserCallback,
long pUserData)
Initializes this struct with the specified values.
|
VkDebugUtilsMessengerCreateInfoEXT |
set(VkDebugUtilsMessengerCreateInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkDebugUtilsMessengerCreateInfoEXT |
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 FLAGS
public static final int MESSAGESEVERITY
public static final int MESSAGETYPE
public static final int PFNUSERCALLBACK
public static final int PUSERDATA
public VkDebugUtilsMessengerCreateInfoEXT(java.nio.ByteBuffer container)
VkDebugUtilsMessengerCreateInfoEXT 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 int flags()
flags field.public int messageSeverity()
messageSeverity field.public int messageType()
messageType field.public VkDebugUtilsMessengerCallbackEXT pfnUserCallback()
pfnUserCallback field.public long pUserData()
pUserData field.public VkDebugUtilsMessengerCreateInfoEXT sType(int value)
sType field.public VkDebugUtilsMessengerCreateInfoEXT pNext(long value)
pNext field.public VkDebugUtilsMessengerCreateInfoEXT flags(int value)
flags field.public VkDebugUtilsMessengerCreateInfoEXT messageSeverity(int value)
messageSeverity field.public VkDebugUtilsMessengerCreateInfoEXT messageType(int value)
messageType field.public VkDebugUtilsMessengerCreateInfoEXT pfnUserCallback(VkDebugUtilsMessengerCallbackEXTI value)
pfnUserCallback field.public VkDebugUtilsMessengerCreateInfoEXT pUserData(long value)
pUserData field.public VkDebugUtilsMessengerCreateInfoEXT set(int sType, long pNext, int flags, int messageSeverity, int messageType, VkDebugUtilsMessengerCallbackEXTI pfnUserCallback, long pUserData)
public VkDebugUtilsMessengerCreateInfoEXT set(VkDebugUtilsMessengerCreateInfoEXT src)
src - the source structpublic static VkDebugUtilsMessengerCreateInfoEXT malloc()
VkDebugUtilsMessengerCreateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkDebugUtilsMessengerCreateInfoEXT calloc()
VkDebugUtilsMessengerCreateInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkDebugUtilsMessengerCreateInfoEXT create()
VkDebugUtilsMessengerCreateInfoEXT instance allocated with BufferUtils.public static VkDebugUtilsMessengerCreateInfoEXT create(long address)
VkDebugUtilsMessengerCreateInfoEXT instance for the specified memory address.@Nullable public static VkDebugUtilsMessengerCreateInfoEXT createSafe(long address)
public static VkDebugUtilsMessengerCreateInfoEXT.Buffer malloc(int capacity)
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDebugUtilsMessengerCreateInfoEXT.Buffer calloc(int capacity)
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDebugUtilsMessengerCreateInfoEXT.Buffer create(int capacity)
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDebugUtilsMessengerCreateInfoEXT.Buffer create(long address, int capacity)
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDebugUtilsMessengerCreateInfoEXT.Buffer createSafe(long address, int capacity)
public static VkDebugUtilsMessengerCreateInfoEXT mallocStack()
VkDebugUtilsMessengerCreateInfoEXT instance allocated on the thread-local MemoryStack.public static VkDebugUtilsMessengerCreateInfoEXT callocStack()
VkDebugUtilsMessengerCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDebugUtilsMessengerCreateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkDebugUtilsMessengerCreateInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDebugUtilsMessengerCreateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkDebugUtilsMessengerCreateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDebugUtilsMessengerCreateInfoEXT.Buffer mallocStack(int capacity)
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDebugUtilsMessengerCreateInfoEXT.Buffer callocStack(int capacity)
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDebugUtilsMessengerCreateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDebugUtilsMessengerCreateInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDebugUtilsMessengerCreateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDebugUtilsMessengerCreateInfoEXT.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 int nflags(long struct)
flags().public static int nmessageSeverity(long struct)
messageSeverity().public static int nmessageType(long struct)
messageType().public static VkDebugUtilsMessengerCallbackEXT npfnUserCallback(long struct)
pfnUserCallback().public static long npUserData(long struct)
pUserData().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nmessageSeverity(long struct,
int value)
messageSeverity.public static void nmessageType(long struct,
int value)
messageType.public static void npfnUserCallback(long struct,
VkDebugUtilsMessengerCallbackEXTI value)
pfnUserCallback.public static void npUserData(long struct,
long value)
pUserData.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.