pfnAllocation must be a valid pointer to a valid user-defined VkAllocationFunctionpfnReallocation must be a valid pointer to a valid user-defined VkReallocationFunctionpfnFree must be a valid pointer to a valid user-defined VkFreeFunctionpfnInternalAllocation or pfnInternalFree is not NULL, both must be valid callbacksVkAllocationFunction, VkFreeFunction, VkInternalAllocationNotification, VkInternalFreeNotification, VkReallocationFunction, AllocateMemory, CreateAccelerationStructureKHR, CreateAccelerationStructureNV, CreateAndroidSurfaceKHR, CreateBuffer, CreateBufferView, CreateCommandPool, CreateComputePipelines, CreateCuFunctionNVX, CreateCuModuleNVX, CreateDebugReportCallbackEXT, CreateDebugUtilsMessengerEXT, CreateDeferredOperationKHR, CreateDescriptorPool, CreateDescriptorSetLayout, CreateDescriptorUpdateTemplate, CreateDescriptorUpdateTemplateKHR, CreateDevice, CreateDirectFBSurfaceEXT, CreateDisplayModeKHR, CreateDisplayPlaneSurfaceKHR, CreateEvent, CreateExecutionGraphPipelinesAMDX, CreateFence, CreateFramebuffer, CreateGraphicsPipelines, CreateHeadlessSurfaceEXT, CreateImage, CreateImageView, CreateIndirectCommandsLayoutNV, CreateInstance, CreateMacOSSurfaceMVK, CreateMetalSurfaceEXT, CreateMicromapEXT, CreateOpticalFlowSessionNV, CreatePipelineCache, CreatePipelineLayout, CreatePrivateDataSlot, CreatePrivateDataSlotEXT, CreateQueryPool, CreateRayTracingPipelinesKHR, CreateRayTracingPipelinesNV, CreateRenderPass, CreateRenderPass2, CreateRenderPass2KHR, CreateSampler, CreateSamplerYcbcrConversion, CreateSamplerYcbcrConversionKHR, CreateSemaphore, CreateShaderModule, CreateShadersEXT, CreateSharedSwapchainsKHR, CreateSwapchainKHR, CreateValidationCacheEXT, CreateVideoSessionKHR, CreateVideoSessionParametersKHR, CreateWaylandSurfaceKHR, CreateWin32SurfaceKHR, CreateXcbSurfaceKHR, CreateXlibSurfaceKHR, DestroyAccelerationStructureKHR, DestroyAccelerationStructureNV, DestroyBuffer, 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, DestroyVideoSessionKHR, DestroyVideoSessionParametersKHR, FreeMemory, RegisterDeviceEventEXT, RegisterDisplayEventEXT
struct VkAllocationCallbacks {
void * pUserData;
PFN_vkAllocationFunction pfnAllocation;
PFN_vkReallocationFunction pfnReallocation;
PFN_vkFreeFunction pfnFree;
PFN_vkInternalAllocationNotification pfnInternalAllocation;
PFN_vkInternalFreeNotification pfnInternalFree;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkAllocationCallbacks.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | PFNALLOCATION
The struct member offsets. |
| public static final int | PFNFREE
The struct member offsets. |
| public static final int | PFNINTERNALALLOCATION
The struct member offsets. |
| public static final int | PFNINTERNALFREE
The struct member offsets. |
| public static final int | PFNREALLOCATION
The struct member offsets. |
| public static final int | PUSERDATA
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkAllocationCallbacks(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkAllocationCallbacks | |
| public static VkAllocationCallbacks. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkAllocationCallbacks | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAllocationCallbacks. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkAllocationCallbacks | |
| public static VkAllocationCallbacks | |
| public static VkAllocationCallbacks. | |
| public static VkAllocationCallbacks. | |
| protected VkAllocationCallbacks | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkAllocationCallbacks | |
| public static VkAllocationCallbacks | |
| public static VkAllocationCallbacks. | create(int
the buffer capacity capacity)Returns a new |
| public static VkAllocationCallbacks. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkAllocationCallbacks | |
| public static VkAllocationCallbacks. | |
| public static VkAllocationCallbacks | |
| public static VkAllocationCallbacks. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkAllocationCallbacks | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAllocationCallbacks. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkAllocationCallbacks | |
| public static VkAllocationCallbacks | |
| public static VkAllocationCallbacks. | |
| public static VkAllocationCallbacks. | |
| public static VkAllocationFunction | |
| public static void | |
| public static VkFreeFunction | |
| public static void | |
| public static VkInternalAllocationNotification | |
| public static void | npfnInternalAllocation(long struct, VkInternalAllocationNotificationI value)
Unsafe version of |
| public static VkInternalFreeNotification | |
| public static void | |
| public static VkReallocationFunction | |
| public static void | |
| public static long | |
| public static void | |
| public VkAllocationFunction | |
| public VkAllocationCallbacks | |
| public VkFreeFunction | |
| public VkAllocationCallbacks | |
| public VkInternalAllocationNotification | pfnInternalAllocation()
a |
| public VkAllocationCallbacks | pfnInternalAllocation(VkInternalAllocationNotificationI value)
Sets the specified value to the |
| public VkInternalFreeNotification | pfnInternalFree()
a |
| public VkAllocationCallbacks | pfnInternalFree(VkInternalFreeNotificationI value)
Sets the specified value to the |
| public VkReallocationFunction | pfnReallocation()
a |
| public VkAllocationCallbacks | pfnReallocation(VkReallocationFunctionI value)
Sets the specified value to the |
| public long | |
| public VkAllocationCallbacks | |
| public VkAllocationCallbacks | set(long pUserData, VkAllocationFunctionI pfnAllocation, VkReallocationFunctionI pfnReallocation, VkFreeFunctionI pfnFree, VkInternalAllocationNotificationI pfnInternalAllocation, VkInternalFreeNotificationI pfnInternalFree)
Initializes this struct with the specified values. |
| public VkAllocationCallbacks | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int |