Skip to content

TextureLayered

eduardgushchin edited this page Oct 22, 2026 · 1 revision

Home | API by Category | Complete API Index | API Status

Field Value
Full name Electron2D.TextureLayered
Namespace Electron2D
Kind class
Category API Rendering

Overview

A sampled array of equally sized image layers, independent of ordinary canvas texture drawing.

Syntax

public abstract class Electron2D.TextureLayered

Remarks

Resources own copied pixels or supply them through typed getters. Custom producers emit Changed after mutation; prepared rendering reuses immutable snapshots. Native allocations belong to the active renderer. RenderingServer.TextureGetRDTexture borrows actual array storage on the retained device; compatible updates preserve identity while allocation replacement/disposal expires it. Device writes leave authored CPU pixels unchanged.

Inherits: Resource

Detailed engine reference

Members

Member Kind Summary
protected TextureLayered() constructor Initializes cached pixel invalidation for a custom layered producer.
protected override System.Void Dispose(System.Boolean disposing) method
public abstract Electron2D.Image.Format GetFormat() method Gets the source pixel format.
public abstract System.Int32 GetHeight() method Gets the pixel height of one layer.
public abstract Electron2D.Image GetLayerData(System.Int32 layerIndex) method Copies one layer into a caller-owned image.
public virtual Electron2D.TextureLayered.LayeredType GetLayeredType() method Gets the sampling role.
public abstract System.Int32 GetLayers() method Gets the number of image layers.
public override Electron2D.RID GetRID() method
public abstract System.Int32 GetWidth() method Gets the pixel width of one layer.
public abstract System.Boolean HasMIPMaps() method Reports whether each image stores a mipmap chain.
protected override System.Void ValidateDisposal() method

Member Details

TextureLayered()

Kind: constructor

protected TextureLayered()

Summary

Initializes cached pixel invalidation for a custom layered producer.

Dispose(System.Boolean)

Kind: method

protected override System.Void Dispose(System.Boolean disposing)

GetFormat()

Kind: method

public abstract Electron2D.Image.Format GetFormat()

Summary

Gets the source pixel format.

Returns

The stored image format, without exposing upload conversion.

GetHeight()

Kind: method

public abstract System.Int32 GetHeight()

Summary

Gets the pixel height of one layer.

Returns

The authored height; zero for uninitialized image arrays.

GetLayerData(System.Int32)

Kind: method

public abstract Electron2D.Image GetLayerData(System.Int32 layerIndex)

Summary

Copies one layer into a caller-owned image.

Returns

An independent image, or null for a metadata-only placeholder.

Parameters

  • layerIndex: The zero-based image layer.

Exceptions

  • T:System.ArgumentOutOfRangeException: An image-array layer is outside its stored range.

GetLayeredType()

Kind: method

public virtual Electron2D.TextureLayered.LayeredType GetLayeredType()

Summary

Gets the sampling role.

Returns

The independent image-array role.

GetLayers()

Kind: method

public abstract System.Int32 GetLayers()

Summary

Gets the number of image layers.

Returns

The authored count; zero for uninitialized image arrays.

GetRID()

Kind: method

public override Electron2D.RID GetRID()

GetWidth()

Kind: method

public abstract System.Int32 GetWidth()

Summary

Gets the pixel width of one layer.

Returns

The authored width; zero for uninitialized image arrays.

HasMIPMaps()

Kind: method

public abstract System.Boolean HasMIPMaps()

Summary

Reports whether each image stores a mipmap chain.

Returns

True when stored layers contain mipmaps.

ValidateDisposal()

Kind: method

protected override System.Void ValidateDisposal()

Clone this wiki locally