Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
data AllocationCallbacks Source #
VkAllocationCallbacks - Structure containing callback function pointers for memory allocation
Description
pUserData
is a value to be interpreted by the implementation of the callbacks. When any of the callbacks inAllocationCallbacks
are 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.
pfnAllocation
is aPFN_vkAllocationFunction
pointer to an application-defined memory allocation function.pfnReallocation
is aPFN_vkReallocationFunction
pointer to an application-defined memory reallocation function.pfnFree
is aPFN_vkFreeFunction
pointer to an application-defined memory free function.pfnInternalAllocation
is aPFN_vkInternalAllocationNotification
pointer to an application-defined function that is called by the implementation when the implementation makes internal allocations.pfnInternalFree
is aPFN_vkInternalFreeNotification
pointer to an application-defined function that is called by the implementation when the implementation frees internal allocations.
Valid Usage
-
pfnAllocation
must be a valid pointer to a valid user-definedPFN_vkAllocationFunction
-
pfnReallocation
must be a valid pointer to a valid user-definedPFN_vkReallocationFunction
-
pfnFree
must be a valid pointer to a valid user-definedPFN_vkFreeFunction
- If either
of
pfnInternalAllocation
orpfnInternalFree
is 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
,
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
,
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