Creates a new cube texture.
Namespace: Internal.SharpBgfxAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static Texture CreateCube(
int size,
bool hasMips,
int arrayLayers,
TextureFormat format,
TextureFlags flags = TextureFlags.None,
MemoryBlock? memory = null
)
Parameters
- size Int32
- The size of each cube face.
- 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