Click or drag to resize

TextureCreate2D(Int32, Int32, Boolean, Int32, TextureFormat, TextureFlags, NullableMemoryBlock) Method

Creates a new 2D texture.

Namespace: Internal.SharpBgfx
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public static Texture Create2D(
	int width,
	int height,
	bool hasMips,
	int arrayLayers,
	TextureFormat format,
	TextureFlags flags = TextureFlags.None,
	MemoryBlock? memory = null
)

Parameters

width  Int32
The width of the texture.
height  Int32
The height of the texture.
hasMips  Boolean
Indicates that texture contains full mip-map chain.
arrayLayers  Int32
Number of layers in texture array. Must be 1 if Texture2DArray caps flag not set.
format  TextureFormat
The format of the texture data.
flags  TextureFlags  (Optional)
Flags that control texture behavior.
memory  NullableMemoryBlock  (Optional)
If not null, contains the texture's image data.

Return Value

Texture
The newly created texture handle.
See Also