reckfellENGINE

PlaceholderTextureLayered

Shared dimensions and layers for array and cubemap placeholders.

On this page
class PlaceholderTextureLayeredReckfellSharpInherits TextureLayered

Base type for PlaceholderTexture2DArray, PlaceholderCubemap and PlaceholderCubemapArray. Construct the concrete type you need. Size stores layer dimensions; Layers is a separate metadata count. Defaults are Size=(1,1), Layers=1; choosing a cubemap type does not create six source images.

GetFormat() returns Rgb8, HasMipmaps() false and GetLayerData() null. The resource describes kind and dimensions rather than original pixels. Size emits Changed and retains an existing placeholder RID. Layers changes without Changed: a listener to that signal alone will miss a layer-count-only edit.

These contracts and RID stability were checked for all three concrete types on Windows/Vulkan. User boundary validation, actual cube-face contents, shader drawing and visual quality were not established.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Properties2

LayersProperty
# Layers
C#
public int Layers { get; set; }

Metadata layer count, initially 1 even on directly constructed PlaceholderCubemap and PlaceholderCubemapArray. The current setter does not emit Changed or upload images. This proves neither cube-face availability nor valid pixel-array contents; the Inspector range is not data validation.

SizeProperty
# Size
C#
public Vector2I Size { get; set; }

Layer metadata size, initially (1,1). Editing emits Changed and preserves the placeholder RID without creating layer data. One size describes all layers; use positive components.

Methods3

GetSizeVector2I
# GetSize
C#
public Vector2I GetSize();

Returns current metadata dimensions without reading pixels.

Returns Vector2I

Metadata dimensions, not the amount of returned image data.

SetLayersvoid
# SetLayers
C#
public void SetLayers(int layers);

Metadata layer count, initially 1 even on directly constructed PlaceholderCubemap and PlaceholderCubemapArray. The current setter does not emit Changed or upload images. This proves neither cube-face availability nor valid pixel-array contents; the Inspector range is not data validation.

Parameters
NameTypeDefault
layersint—
layers

Metadata layer count, initially 1 even on directly constructed PlaceholderCubemap and PlaceholderCubemapArray. The current setter does not emit Changed or upload images. This proves neither cube-face availability nor valid pixel-array contents; the Inspector range is not data validation.

SetSizevoid
# SetSize
C#
public void SetSize(Vector2I size);

Layer metadata size, initially (1,1). Editing emits Changed and preserves the placeholder RID without creating layer data. One size describes all layers; use positive components.

Parameters
NameTypeDefault
sizeVector2I—
size

Layer metadata size, initially (1,1). Editing emits Changed and preserves the placeholder RID without creating layer data. One size describes all layers; use positive components.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.