Repository navigation
TextureLayered
Home | API by Category | Complete API Index | API Status
| Field | Value |
|---|---|
| Full name | Electron2D.TextureLayered |
| Namespace | Electron2D |
| Kind | class |
| Category | API Rendering |
A sampled array of equally sized image layers, independent of ordinary canvas texture drawing.
public abstract class Electron2D.TextureLayeredResources 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
| 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 |
Kind: constructor
protected TextureLayered()Initializes cached pixel invalidation for a custom layered producer.
Kind: method
protected override System.Void Dispose(System.Boolean disposing)Kind: method
public abstract Electron2D.Image.Format GetFormat()Gets the source pixel format.
The stored image format, without exposing upload conversion.
Kind: method
public abstract System.Int32 GetHeight()Gets the pixel height of one layer.
The authored height; zero for uninitialized image arrays.
Kind: method
public abstract Electron2D.Image GetLayerData(System.Int32 layerIndex)Copies one layer into a caller-owned image.
An independent image, or null for a metadata-only placeholder.
-
layerIndex: The zero-based image layer.
-
T:System.ArgumentOutOfRangeException: An image-array layer is outside its stored range.
Kind: method
public virtual Electron2D.TextureLayered.LayeredType GetLayeredType()Gets the sampling role.
The independent image-array role.
Kind: method
public abstract System.Int32 GetLayers()Gets the number of image layers.
The authored count; zero for uninitialized image arrays.
Kind: method
public override Electron2D.RID GetRID()Kind: method
public abstract System.Int32 GetWidth()Gets the pixel width of one layer.
The authored width; zero for uninitialized image arrays.
Kind: method
public abstract System.Boolean HasMIPMaps()Reports whether each image stores a mipmap chain.
True when stored layers contain mipmaps.
Kind: method
protected override System.Void ValidateDisposal()