The prototype for the VkDebugUtilsMessengerCreateInfoEXT::pfnUserCallback function implemented by the application is:
typedef VkBool32 (VKAPI_PTR *PFN_vkDebugUtilsMessengerCallbackEXT)(
VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity,
VkDebugUtilsMessageTypeFlagsEXT messageTypes,
const VkDebugUtilsMessengerCallbackDataEXT* pCallbackData,
void* pUserData);
The callback returns a VkBool32, which is interpreted in a layer-specified manner. The application should always return FALSE. The TRUE value is reserved for use in layer development.
| Modifier and Type | Method and Description |
|---|---|
| public default void | callback(long
a pointer to the memory used for the function's return value.
ret, long If the function is declared as returning Otherwise, the callback must fill the object to which this points, following the same special promotion behavior as
a vector of pointers to memory holding the arguments to the function args)Implements org. |
| public default FFICIF | getCallInterface()
Implements org. |
| public int | invoke(int
specifies the messageSeverity, int VkDebugUtilsMessageSeverityFlagBitsEXT that triggered this callback.a bitmask of messageTypes, long VkDebugUtilsMessageTypeFlagBitsEXT specifying which type of event(s) triggered this callback.contains all the callback related data in the pCallbackData, long VkDebugUtilsMessengerCallbackDataEXT structure.the user data provided when the pUserData)VkDebugUtilsMessengerEXT was created.Application-defined debug messenger callback function. |
| CIF | back to summary |
|---|---|
| public static final FFICIF CIF | |
| callback | back to summary |
|---|---|
| public default void callback(long ret, long args) Implements org. Doc from org. The Java method that will be called from native code when the native callback function is invoked.
| |
| getCallInterface | back to summary |
|---|---|
| public default FFICIF getCallInterface() Implements org. Doc from org. Returns the libffi Call Interface for this callback function. [INTERNAL API] | |
| invoke | back to summary |
|---|---|
| public int invoke(int messageSeverity, int messageTypes, long pCallbackData, long pUserData) Application-defined debug messenger callback function.
| |