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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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
See Also