Package org.lwjgl.vulkan
Interface VkDebugReportCallbackEXTI
-
- All Superinterfaces:
- CallbackI, CallbackI.I, Pointer
- All Known Implementing Classes:
- VkDebugReportCallbackEXT
@FunctionalInterface public interface VkDebugReportCallbackEXTI extends CallbackI.I
Instances of this interface may be set to thepfnCallbackmember of theVkDebugReportCallbackCreateInfoEXTstruct.A callback will be made for issues that match any bit set in its flags. 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 different way, log to system error log, etc.) An application may receive multiple callbacks if multiple
VkDebugReportCallbackEXTobjects were created. A callback will always be executed in the same thread as the originating Vulkan call. A callback may be called from multiple threads simultaneously (if the application is making Vulkan calls from multiple threads).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI
CallbackI.B, CallbackI.D, CallbackI.F, CallbackI.I, CallbackI.J, CallbackI.P, CallbackI.S, CallbackI.V, CallbackI.Z
-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method and Description default longaddress()Returns the raw pointer address as alongvalue.default intcallback(long args)Will be called by native code.intinvoke(int flags, int objectType, long object, long location, int messageCode, long pLayerPrefix, long pMessage, long pUserData)Will be called by the Vulkan implementation for events of interest to the application.
-
-
-
Method Detail
-
address
default long address()
Description copied from interface:PointerReturns the raw pointer address as alongvalue.
-
callback
default int callback(long args)
Description copied from interface:CallbackI.IWill be called by native code.- Specified by:
callbackin interfaceCallbackI.I- Parameters:
args- pointer to aDCArgsiterator- Returns:
- the value to store to the result
DCValue
-
invoke
int invoke(int flags, int objectType, long object, long location, int messageCode, long pLayerPrefix, long pMessage, long pUserData)Will be called by the Vulkan implementation for events of interest to the application.- Parameters:
flags- indicates theVkDebugReportFlagBitsEXTthat triggered this callbackobjectType- the type of object being used / created at the time the event was triggered.object- gives the object where the issue was detected.objectmay beNULL_HANDLEif there is no object associated with the event.location- location is a component (layer, driver, loader) defined value that indicates the "location" of the trigger. This is an optional value.messageCode- a layer defined value indicating what test triggered this callbackpLayerPrefix- abbreviation of the component making the callbackpMessage- a null terminated string detailing the trigger conditionspUserData- the user data given when theDebugReportCallbackwas created- Returns:
- a
VkBool32that indicates to the calling layer if the Vulkan call should be aborted or not. Applications should always returnFALSEso that they see the same behavior with and without validation layers enabled.
-
-