PlaceholderTexture3D
Texture3D dimension metadata without voxel data.
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:
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
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
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
public Vector3I GetSize();Returns current metadata dimensions without reading pixels.
Vector3IMetadata dimensions, not the amount of returned image data.
SetSizevoid
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.
| Name | Type | Default |
|---|---|---|
size | Vector3I | — |
sizeMetadata 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.