Click or drag to resize
Ab4d.SharpEngine logo

GpuImage(VulkanDevice, RawImageData, Boolean, Boolean, ImageUsageFlags, AccessFlags, ImageLayout, PipelineStageFlags, String) Constructor

Constructor

Namespace: Ab4d.SharpEngine.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public GpuImage(
	VulkanDevice vulkanDevice,
	RawImageData rawImageData,
	bool generateMipMaps = true,
	bool createImageView = true,
	ImageUsageFlags imageUsage = ImageUsageFlags.TransferSrc|ImageUsageFlags.TransferDst|ImageUsageFlags.Sampled,
	AccessFlags accessFlags = AccessFlags.ShaderRead,
	ImageLayout imageLayout = ImageLayout.ShaderReadOnlyOptimal,
	PipelineStageFlags stageFlags = PipelineStageFlags.FragmentShader,
	string? imageSource = null
)

Parameters

vulkanDevice  VulkanDevice
vulkanDevice
rawImageData  RawImageData
rawImageData
generateMipMaps  Boolean  (Optional)
generateMipMaps
createImageView  Boolean  (Optional)
createImageView
imageUsage  ImageUsageFlags  (Optional)
imageUsage
accessFlags  AccessFlags  (Optional)
accessFlags
imageLayout  ImageLayout  (Optional)
imageLayout
stageFlags  PipelineStageFlags  (Optional)
stageFlags
imageSource  String  (Optional)
imageSource
See Also