All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.vulkan.VkDebugReportCallbackEXTI Maven / Gradle / Ivy

Go to download

A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.vulkan;

import org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;

import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libffi.LibFFI.*;

/**
 * Application-defined debug report callback function.
 * 
 * 
C Specification
* *

The prototype for the {@link VkDebugReportCallbackCreateInfoEXT}{@code ::pfnCallback} function implemented by the application is:

* *

 * typedef VkBool32 (VKAPI_PTR *PFN_vkDebugReportCallbackEXT)(
 *     VkDebugReportFlagsEXT                       flags,
 *     VkDebugReportObjectTypeEXT                  objectType,
 *     uint64_t                                    object,
 *     size_t                                      location,
 *     int32_t                                     messageCode,
 *     const char*                                 pLayerPrefix,
 *     const char*                                 pMessage,
 *     void*                                       pUserData);
* *
Description
* *

The callback must not call {@code vkDestroyDebugReportCallbackEXT}.

* *

The callback returns a {@code VkBool32}, which is interpreted in a layer-specified manner. The application should always return {@link VK10#VK_FALSE FALSE}. The {@link VK10#VK_TRUE TRUE} value is reserved for use in layer development.

* *

{@code object} must be a Vulkan object or {@link VK10#VK_NULL_HANDLE NULL_HANDLE}. If {@code objectType} is not {@link EXTDebugReport#VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT} and {@code object} is not {@link VK10#VK_NULL_HANDLE NULL_HANDLE}, {@code object} must be a Vulkan object of the corresponding type associated with {@code objectType} as defined in {@code VkDebugReportObjectTypeEXT} and Vulkan Handle Relationship.

* *
See Also
* *

{@link VkDebugReportCallbackCreateInfoEXT}

*/ @FunctionalInterface @NativeType("PFN_vkDebugReportCallbackEXT") public interface VkDebugReportCallbackEXTI extends CallbackI { FFICIF CIF = apiCreateCIF( apiStdcall(), ffi_type_uint32, ffi_type_uint32, ffi_type_uint32, ffi_type_uint64, ffi_type_pointer, ffi_type_sint32, ffi_type_pointer, ffi_type_pointer, ffi_type_pointer ); @Override default FFICIF getCallInterface() { return CIF; } @Override default void callback(long ret, long args) { int __result = invoke( memGetInt(memGetAddress(args)), memGetInt(memGetAddress(args + POINTER_SIZE)), memGetLong(memGetAddress(args + 2 * POINTER_SIZE)), memGetAddress(memGetAddress(args + 3 * POINTER_SIZE)), memGetInt(memGetAddress(args + 4 * POINTER_SIZE)), memGetAddress(memGetAddress(args + 5 * POINTER_SIZE)), memGetAddress(memGetAddress(args + 6 * POINTER_SIZE)), memGetAddress(memGetAddress(args + 7 * POINTER_SIZE)) ); apiClosureRet(ret, __result); } /** * Application-defined debug report callback function. * * @param flags specifies the {@code VkDebugReportFlagBitsEXT} that triggered this callback. * @param objectType a {@code VkDebugReportObjectTypeEXT} value specifying the type of object being used or created at the time the event was triggered. * @param object the object where the issue was detected. If {@code objectType} is {@link EXTDebugReport#VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT}, {@code object} is undefined. * @param location a component (layer, driver, loader) defined value specifying the location of the trigger. This is an optional value. * @param messageCode a layer-defined value indicating what test triggered this callback. * @param pLayerPrefix a null-terminated string that is an abbreviation of the name of the component making the callback. {@code pLayerPrefix} is only valid for the duration of the callback. * @param pMessage a null-terminated string detailing the trigger conditions. {@code pMessage} is only valid for the duration of the callback. * @param pUserData the user data given when the {@code VkDebugReportCallbackEXT} was created. */ @NativeType("VkBool32") int invoke(@NativeType("VkDebugReportFlagsEXT") int flags, @NativeType("VkDebugReportObjectTypeEXT") int objectType, @NativeType("uint64_t") long object, @NativeType("size_t") long location, @NativeType("int32_t") int messageCode, @NativeType("char const *") long pLayerPrefix, @NativeType("char const *") long pMessage, @NativeType("void *") long pUserData); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy