| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Vulkan.Core10.AllocationCallbacks
Synopsis
Documentation
data AllocationCallbacks Source #
VkAllocationCallbacks - Structure containing callback function pointers for memory allocation
Description
pUserDatais a value to be interpreted by the implementation of the callbacks. When any of the callbacks inAllocationCallbacksare called, the Vulkan implementation will pass this value as the first parameter to the callback. This value can vary each time an allocator is passed into a command, even when the same object takes an allocator in multiple commands.
pfnAllocationis aPFN_vkAllocationFunctionpointer to an application-defined memory allocation function.pfnReallocationis aPFN_vkReallocationFunctionpointer to an application-defined memory reallocation function.pfnFreeis aPFN_vkFreeFunctionpointer to an application-defined memory free function.pfnInternalAllocationis aPFN_vkInternalAllocationNotificationpointer to an application-defined function that is called by the implementation when the implementation makes internal allocations.pfnInternalFreeis aPFN_vkInternalFreeNotificationpointer to an application-defined function that is called by the implementation when the implementation frees internal allocations.
Valid Usage
-
pfnAllocationmust be a valid pointer to a valid user-definedPFN_vkAllocationFunction
-
pfnReallocationmust be a valid pointer to a valid user-definedPFN_vkReallocationFunction -
pfnFreemust be a valid pointer to a valid user-definedPFN_vkFreeFunction - If either
of
pfnInternalAllocationorpfnInternalFreeis notNULL, both must be valid callbacks
See Also
PFN_vkAllocationFunction,
PFN_vkFreeFunction,
PFN_vkInternalAllocationNotification,
PFN_vkInternalFreeNotification,
PFN_vkReallocationFunction,
VK_VERSION_1_0,
allocateMemory,
createAccelerationStructureKHR,
createAccelerationStructureNV,
createAndroidSurfaceKHR,
createBuffer,
createBufferCollectionFUCHSIA,
createBufferView,
createCommandPool,
createComputePipelines,
createCuFunctionNVX,
createCuModuleNVX,
createCudaFunctionNV,
createCudaModuleNV,
createDebugReportCallbackEXT,
createDebugUtilsMessengerEXT,
createDeferredOperationKHR,
createDescriptorPool,
createDescriptorSetLayout,
createDescriptorUpdateTemplate,
createDescriptorUpdateTemplateKHR,
createDevice,
createDirectFBSurfaceEXT,
createDisplayModeKHR,
createDisplayPlaneSurfaceKHR,
createEvent,
createExecutionGraphPipelinesAMDX,
createFence,
createFramebuffer,
createGraphicsPipelines,
createHeadlessSurfaceEXT,
createIOSSurfaceMVK,
createImage,
createImagePipeSurfaceFUCHSIA,
createImageView,
createIndirectCommandsLayoutNV,
createInstance,
createMacOSSurfaceMVK,
createMetalSurfaceEXT,
createMicromapEXT,
createOpticalFlowSessionNV,
createPipelineCache,
createPipelineLayout,
createPrivateDataSlot,
createPrivateDataSlotEXT,
createQueryPool,
createRayTracingPipelinesKHR,
createRayTracingPipelinesNV,
createRenderPass,
createRenderPass2,
createRenderPass2KHR,
createSampler,
createSamplerYcbcrConversion,
createSamplerYcbcrConversionKHR,
createScreenSurfaceQNX,
createSemaphore,
createShaderModule,
createShadersEXT,
createSharedSwapchainsKHR,
createStreamDescriptorSurfaceGGP,
createSwapchainKHR,
createValidationCacheEXT,
createViSurfaceNN,
vkCreateVideoSessionKHR,
vkCreateVideoSessionParametersKHR,
createWaylandSurfaceKHR,
createWin32SurfaceKHR,
createXcbSurfaceKHR,
createXlibSurfaceKHR,
destroyAccelerationStructureKHR,
destroyAccelerationStructureNV,
destroyBuffer,
destroyBufferCollectionFUCHSIA,
destroyBufferView,
destroyCommandPool,
destroyCuFunctionNVX,
destroyCuModuleNVX,
destroyCudaFunctionNV,
destroyCudaModuleNV,
destroyDebugReportCallbackEXT,
destroyDebugUtilsMessengerEXT,
destroyDeferredOperationKHR,
destroyDescriptorPool,
destroyDescriptorSetLayout,
destroyDescriptorUpdateTemplate,
destroyDescriptorUpdateTemplateKHR,
destroyDevice,
destroyEvent, destroyFence,
destroyFramebuffer,
destroyImage,
destroyImageView,
destroyIndirectCommandsLayoutNV,
destroyInstance,
destroyMicromapEXT,
destroyOpticalFlowSessionNV,
destroyPipeline,
destroyPipelineCache,
destroyPipelineLayout,
destroyPrivateDataSlot,
destroyPrivateDataSlotEXT,
destroyQueryPool,
destroyRenderPass,
destroySampler,
destroySamplerYcbcrConversion,
destroySamplerYcbcrConversionKHR,
destroySemaphore,
destroyShaderEXT,
destroyShaderModule,
destroySurfaceKHR,
destroySwapchainKHR,
destroyValidationCacheEXT,
vkDestroyVideoSessionKHR,
vkDestroyVideoSessionParametersKHR,
freeMemory,
registerDeviceEventEXT,
registerDisplayEventEXT
Constructors
| AllocationCallbacks | |