type TextureSource = {
texture: GPUTexture,
view?: GPUTextureView,
sampler: GPUSampler | GPUSamplerDescriptor | null,
layout: string,
format: string,
size:
| number[]
| | Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array,
version: number,
mips?: number,
variant?: string,
absolute?: boolean,
comparison?: boolean,
volatile?: number,
colorSpace?: any,
aspect?: GPUTextureAspect,
}
packages / shader / src / types.ts