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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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