org.lwjgl.vulkan.VkDeviceMemoryReportCallbackEXTI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-vulkan Show documentation
Show all versions of lwjgl-vulkan Show documentation
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.
/*
* 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 device memory report callback function.
*
* C Specification
*
* The prototype for the {@link VkDeviceDeviceMemoryReportCreateInfoEXT}{@code ::pfnUserCallback} function implemented by the application is:
*
*
* typedef void (VKAPI_PTR *PFN_vkDeviceMemoryReportCallbackEXT)(
* const VkDeviceMemoryReportCallbackDataEXT* pCallbackData,
* void* pUserData);
*
* Description
*
* The callback must not make calls to any Vulkan commands.
*
* See Also
*
* {@link VkDeviceDeviceMemoryReportCreateInfoEXT}
*/
@FunctionalInterface
@NativeType("PFN_vkDeviceMemoryReportCallbackEXT")
public interface VkDeviceMemoryReportCallbackEXTI extends CallbackI {
FFICIF CIF = apiCreateCIF(
apiStdcall(),
ffi_type_void,
ffi_type_pointer, ffi_type_pointer
);
@Override
default FFICIF getCallInterface() { return CIF; }
@Override
default void callback(long ret, long args) {
invoke(
memGetAddress(memGetAddress(args)),
memGetAddress(memGetAddress(args + POINTER_SIZE))
);
}
/**
* Application-defined device memory report callback function.
*
* @param pCallbackData contains all the callback related data in the {@link VkDeviceMemoryReportCallbackDataEXT} structure.
* @param pUserData the user data provided when the {@link VkDeviceDeviceMemoryReportCreateInfoEXT} was created.
*/
void invoke(@NativeType("VkDeviceMemoryReportCallbackDataEXT const *") long pCallbackData, @NativeType("void *") long pUserData);
}