 |
TextureLoaderCreateTextureAsync(String, VulkanDevice, ActionGpuImage, IBitmapIO, Boolean, Boolean, ActionException) Method |
Note: This API is now obsolete.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax[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(
string fileName,
VulkanDevice gpuDevice,
Action<GpuImage> textureCreatedCallback,
IBitmapIO? bitmapIO = null,
bool generateMipMaps = true,
bool useGpuDeviceCache = false,
Action<Exception>? textureCreationFailedCallback = null
)Parameters
- fileName String
-
- gpuDevice VulkanDevice
-
- textureCreatedCallback ActionGpuImage
-
- bitmapIO IBitmapIO (Optional)
-
- generateMipMaps Boolean (Optional)
-
- useGpuDeviceCache Boolean (Optional)
-
- textureCreationFailedCallback ActionException (Optional)
-
See Also