Click or drag to resize

TextureCreate3D Method

Creates a new 3D texture.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static Texture Create3D(
	int width,
	int height,
	int depth,
	bool hasMips,
	TextureFormat format,
	TextureFlags flags = TextureFlags.None,
	Nullable<MemoryBlock> memory = null
)

Parameters

width
Type: SystemInt32
The width of the texture.
height
Type: SystemInt32
The height of the texture.
depth
Type: SystemInt32
The depth of the texture.
hasMips
Type: SystemBoolean
Indicates that texture contains full mip-map chain.
format
Type: Internal.SharpBgfxTextureFormat
The format of the texture data.
flags (Optional)
Type: Internal.SharpBgfxTextureFlags
Flags that control texture behavior.
memory (Optional)
Type: SystemNullableMemoryBlock
If not null, contains the texture's image data.

Return Value

Type: Texture
The newly created texture handle.
See Also