export interface GPUTextureHandle { texture: GPUTexture; view: GPUTextureView; sampler: GPUSampler; } /** Returns a cached 1x1 white texture (avoids needing separate pipeline variants). */ export declare function getWhiteFallbackTexture(device: GPUDevice): GPUTextureHandle; /** Create a GPU texture from raw RGBA pixel data with auto-generated mipmaps. * @param srgb If true (default), uses rgba8unorm-srgb so sRGB-encoded images * are correctly decoded to linear on GPU read. Pass false for * linear data textures (normal maps, metallic-roughness maps). */ export declare function createTextureFromRGBA(device: GPUDevice, data: Uint8Array, width: number, height: number, srgb?: boolean): GPUTextureHandle; /** Returns a cached 1x1 flat normal texture (127,127,255,255 = tangent-space up). */ export declare function getFlatNormalFallback(device: GPUDevice): GPUTextureHandle; /** Returns a cached 1x1 white metallic-roughness fallback (uniform values override). */ export declare function getDefaultMetallicRoughnessFallback(device: GPUDevice): GPUTextureHandle; /** Decode an image blob to RGBA pixel data using createImageBitmap. */ export declare function decodeImageToRGBA(blob: Blob): Promise<{ data: Uint8Array; width: number; height: number; }>; //# sourceMappingURL=texture.d.ts.map