Click or drag to resize
Ab4d.SharpEngine logo

VulkanMemoryAllocatorAllocateVulkanMemory Method

AllocateVulkanMemory is a protected virtual method that calls the vkAllocateMemory function. The method can be overwritten to provide custom allocation logic.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntax
C#
protected virtual GpuMemory? AllocateVulkanMemory(
	MemoryAllocateInfo memoryAllocateInfo,
	MemoryPropertyFlags memoryProperties,
	bool isImage,
	bool isDedicatedAllocation,
	uint memoryTypeBits,
	string? name,
	out Result? result
)

Parameters

memoryAllocateInfo  MemoryAllocateInfo
MemoryAllocateInfo
memoryProperties  MemoryPropertyFlags
MemoryPropertyFlags
isImage  Boolean
isImage
isDedicatedAllocation  Boolean
isDedicatedAllocation
memoryTypeBits  UInt32
name  String
optional name of the allocated memory
result  Result
result of allocation

Return Value

GpuMemory
GpuMemory
See Also