Skip to content

DataTextureOptions beta ​

Interface of @v12-engine/render

ts
export interface DataTextureOptions

How a data texture is made (Renderer.texture): its size, its texels, its layers or depth, its mips

Members ​

depth ​

ts
depth?: number;

A volume this many texels deep (texture_3d in a shader), where given: rgba8unorm, no mips; a slice of it is written as a layer is (DataRegion.layer, and slices for more than one at once)

format ​

ts
format: DataFormat;

What a texel of it is

height ​

ts
height: number;

Its height in texels

label ​

ts
label?: string;

What the card calls it, in its errors and captures

layers ​

ts
layers?: number;

An array of this many layers (texture_2d_array in a shader), where given

mips ​

ts
mips?: boolean;

Whether it has mips, made by mips() after its first level is written (rgba8unorm only)

target ​

ts
target?: boolean;

Whether a pass of the caller's own draws into it (Renderer.card): a picture made on the card and read after

width ​

ts
width: number;

Its width in texels