Click or drag to resize
Ab4d.SharpEngine logo

TextureFactoryCreateTexture(VulkanDevice, Byte, Int32, Int32, StandardBitmapFormats, Boolean, Boolean, String) Method

Returns a GpuImage created from the data in the specified byte array.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntax
C#
public static GpuImage CreateTexture(
	VulkanDevice gpuDevice,
	byte[] textureData,
	int width,
	int height,
	StandardBitmapFormats format,
	bool isPreMultipliedAlpha = true,
	bool hasTransparentPixels = true,
	string? name = null
)

Parameters

gpuDevice  VulkanDevice
VulkanDevice
textureData  Byte
byte array containing the texture data
width  Int32
Width of the texture
height  Int32
Height of the texture
format  StandardBitmapFormats
StandardBitmapFormats
isPreMultipliedAlpha  Boolean  (Optional)
Indicates whether the alpha channel is pre-multiplied
hasTransparentPixels  Boolean  (Optional)
Indicates whether the texture has transparent pixels
name  String  (Optional)
Optional name

Return Value

GpuImage
Generated GpuImage
See Also