Click or drag to resize

TextureIsValid Method

Checks whether a texture with the given parameters would be considered valid.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static bool IsValid(
	int depth,
	bool isCube,
	int arrayLayers,
	TextureFormat format,
	TextureFlags flags = TextureFlags.None
)

Parameters

depth
Type: SystemInt32
The depth of the texture.
isCube
Type: SystemBoolean
true if the texture contains a cubemap.
arrayLayers
Type: SystemInt32
Number of layers in texture array.
format
Type: Internal.SharpBgfxTextureFormat
The format of the texture data.
flags (Optional)
Type: Internal.SharpBgfxTextureFlags
Flags that control texture behavior.

Return Value

Type: Boolean
See Also