Click or drag to resize
Ab4d.SharpEngine logo

GpuImage(VulkanDevice, Int32, Int32, Format, ImageUsageFlags, MemoryPropertyFlags, Int32, SampleCountFlags, ImageTiling, ImageLayout, ImageAspectFlags, Boolean, Int32, Boolean, String) Constructor

Constructor that created a gpu image and allocates its memory based on the image parameters.

Namespace: Ab4d.SharpEngine.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public GpuImage(
	VulkanDevice vulkanDevice,
	int width,
	int height,
	Format format,
	ImageUsageFlags usage,
	MemoryPropertyFlags memoryProperties = MemoryPropertyFlags.DeviceLocal,
	int mipsCount = 1,
	SampleCountFlags sampleCount = SampleCountFlags.SampleCount1,
	ImageTiling tiling = ImageTiling.Optimal,
	ImageLayout initialImageLayout = ImageLayout.Undefined,
	ImageAspectFlags aspectMask = ImageAspectFlags.None,
	bool createImageView = true,
	int memorySizeAlignment = 0,
	bool isDedicatedAllocation = false,
	string? name = null
)

Parameters

vulkanDevice  VulkanDevice
vulkanDevice
width  Int32
width
height  Int32
height
format  Format
format
usage  ImageUsageFlags
usage
memoryProperties  MemoryPropertyFlags  (Optional)
memoryProperties
mipsCount  Int32  (Optional)
when smaller than 1, then the mipsCount is calculated from the image size
sampleCount  SampleCountFlags  (Optional)
sampleCount
tiling  ImageTiling  (Optional)
tiling
initialImageLayout  ImageLayout  (Optional)
initialImageLayout
aspectMask  ImageAspectFlags  (Optional)
aspectMask
createImageView  Boolean  (Optional)
createImageView
memorySizeAlignment  Int32  (Optional)
memorySizeAlignment
isDedicatedAllocation  Boolean  (Optional)
isDedicatedAllocation
name  String  (Optional)
name
See Also