reckfellENGINE

PlaceholderTexture3D

Texture3D dimension metadata without voxel data.

On this page
class PlaceholderTexture3DReckfellSharpInherits Texture3D

PlaceholderTexture3D stores width, height and depth. Defaults are (1,1,1), Format=Rgb8 and HasMipmaps=false. GetData() returns an empty array: there are no slice images and the resource cannot recover the original texture.

This complete executed helper creates a placeholder with positive dimensions. The caller owns the returned resource; its dimensions are metadata rather than uploaded voxels:

C#
using System;
using Reckfell;

public static class PlaceholderFactory
{
    public static PlaceholderTexture3D Volume(Vector3I size)
    {
        if (size.X <= 0 || size.Y <= 0 || size.Z <= 0)
            throw new ArgumentOutOfRangeException(nameof(size));
        return new PlaceholderTexture3D { Size = size };
    }
}

SetSize/Size emit Changed, including repeated values. An existing RID is retained. Resource saving stores dimensions rather than absent pixels: independent reload of the checked .rbin retained dimensions and empty GetData. Do not substitute this resource for loading an actual volume when a shader requires its contents.

Metadata, RID, signals and persistence were checked on current Windows/Vulkan. Shader sampling, graphics quality, all backends and volume-texture memory costs were not established.

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

Constructors1

PlaceholderTexture3DConstructor
# PlaceholderTexture3D
C#
public PlaceholderTexture3D();

Creates a placeholder with metadata size (1,1,1), RGB8, no mipmaps and no slice images. Dimensions do not establish a source volume.

Properties1

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

Metadata dimensions (width, height, depth), initially (1,1,1). Does not create a corresponding voxel array: GetData remains empty. The setter emits Changed even for the same size and does not replace the placeholder RID. Use positive components.

Methods2

GetSizeVector3I
# GetSize
C#
public Vector3I GetSize();

Returns current metadata dimensions without reading pixels.

Returns Vector3I

Metadata dimensions, not the amount of returned image data.

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

Metadata dimensions (width, height, depth), initially (1,1,1). Does not create a corresponding voxel array: GetData remains empty. The setter emits Changed even for the same size and does not replace the placeholder RID. Use positive components.

Parameters
NameTypeDefault
sizeVector3I—
size

Metadata dimensions (width, height, depth), initially (1,1,1). Does not create a corresponding voxel array: GetData remains empty. The setter emits Changed even for the same size and does not replace the placeholder RID. 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.