Interface VkDebugUtilsMessengerCallbackEXTI

  • All Superinterfaces:
    CallbackI, CallbackI.I, Pointer
    All Known Implementing Classes:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface VkDebugUtilsMessengerCallbackEXTI
    extends CallbackI.I
    Application-defined debug messenger callback function.
    C Specification

    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 must not call DestroyDebugUtilsMessengerEXT.

    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.

    See Also


    • Field Detail


        static final java.lang.String SIGNATURE
    • Method Detail

      • getSignature

        default java.lang.String getSignature()
        Description copied from interface: CallbackI
        Returns the dyncall signature for this callback function. [INTERNAL API]
        Specified by:
        getSignature in interface CallbackI
        the dyncall signature
      • callback

        default int callback​(long args)
        Description copied from interface: CallbackI.I
        Will be called by native code.
        Specified by:
        callback in interface CallbackI.I
        args - pointer to a DCArgs iterator
        the value to store to the result DCValue
      • invoke

        int invoke​(int messageSeverity,
                   int messageTypes,
                   long pCallbackData,
                   long pUserData)
        Application-defined debug messenger callback function.
        messageSeverity - specifies the VkDebugUtilsMessageSeverityFlagBitsEXT that triggered this callback.
        messageTypes - a bitmask of VkDebugUtilsMessageTypeFlagBitsEXT specifying which type of event(s) triggered this callback.
        pCallbackData - contains all the callback related data in the VkDebugUtilsMessengerCallbackDataEXT structure.
        pUserData - the user data provided when the VkDebugUtilsMessengerEXT was created.