Click or drag to resize
Ab4d.SharpEngine logo

TextureLoaderCreateTextureAsync(Stream, String, VulkanDevice, ActionGpuImage, IBitmapIO, Boolean, Boolean, ActionException) Method

Note: This API is now obsolete.


Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntax
C#
[ObsoleteAttribute("CreateTextureAsync method that use callback and is not awaitable was renamed to CreateTexture. Use CreateTextureAsync with await, or use CreateTexture when you need a callback action.")]
public static void CreateTextureAsync(
	Stream fileStream,
	string? streamFileName,
	VulkanDevice gpuDevice,
	Action<GpuImage> textureCreatedCallback,
	IBitmapIO? bitmapIO = null,
	bool generateMipMaps = true,
	bool useGpuDeviceCache = false,
	Action<Exception>? textureCreationFailedCallback = null
)

Parameters

fileStream  Stream
 
streamFileName  String
 
gpuDevice  VulkanDevice
 
textureCreatedCallback  ActionGpuImage
 
bitmapIO  IBitmapIO  (Optional)
 
generateMipMaps  Boolean  (Optional)
 
useGpuDeviceCache  Boolean  (Optional)
 
textureCreationFailedCallback  ActionException  (Optional)
 
See Also