const resizeTextureSource: (
device: GPUDevice,
source: TextureSource,
width: number,
height: number,
depth?: number,
mips?: "auto" | number,
mipLevel?: number,
aspect?: GPUTextureAspect,
dimension?: GPUTextureDimension,
) => {
texture: GPUTexture,
view: GPUTextureView,
size: [number, number, number],
version: number,
sampler: GPUSampler | GPUSamplerDescriptor | null,
layout: string,
format: string,
mips?: number,
variant?: string,
absolute?: boolean,
comparison?: boolean,
volatile?: number,
colorSpace?: ColorSpace,
aspect?: GPUTextureAspect,
}
packages / core / src / texture.ts