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

org.lwjgl.vulkan.VkDeviceMemoryReportCallbackEXTI 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 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); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy