Click or drag to resize
Ab4d.SharpEngine logo

TextureLoaderCreateTextureAsync(RawImageData, VulkanDevice, Boolean, String) Method

CreateTextureAsync creates a GpuImage from the specified RawImageData. See remarks for TextureLoader for more info.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public static Task<GpuImage> CreateTextureAsync(
	RawImageData imageData,
	VulkanDevice gpuDevice,
	bool generateMipMaps = true,
	string? name = null
)

Parameters

imageData  RawImageData
RawImageData with image data
gpuDevice  VulkanDevice
VulkanDevice
generateMipMaps  Boolean  (Optional)
when true (by default) then mip maps will be created for the GpuImage. This takes longer to create the GpuImage but improves the rendering performance and quality of shown texture.
name  String  (Optional)
optional name of the created GpuImage

Return Value

TaskGpuImage
Created GpuImage
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.TextureLoader.CreateTextureAsync(Ab4d.SharpEngine.Common.RawImageData,Ab4d.SharpEngine.Vulkan.VulkanDevice,System.Boolean,System.String)"]

See Also