Click or drag to resize
Ab4d.SharpEngine logo

GpuImage(VulkanDevice, Int32, Int32, Format, ImageUsageFlags, MemoryPropertyFlags, Int32, SampleCountFlags, ImageTiling, ImageLayout, ImageAspectFlags, Boolean, Int32, Boolean, Int32, 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: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
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,
	int imageDepth = 1,
	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
imageDepth  Int32  (Optional)
optional image depth (1 by default; can be set to bigger number to create 3D image)
name  String  (Optional)
name
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Core.GpuImage.#ctor(Ab4d.SharpEngine.Vulkan.VulkanDevice,System.Int32,System.Int32,Ab4d.Vulkan.Format,Ab4d.Vulkan.ImageUsageFlags,Ab4d.Vulkan.MemoryPropertyFlags,System.Int32,Ab4d.Vulkan.SampleCountFlags,Ab4d.Vulkan.ImageTiling,Ab4d.Vulkan.ImageLayout,Ab4d.Vulkan.ImageAspectFlags,System.Boolean,System.Int32,System.Boolean,System.Int32,System.String)"]

See Also