import type { GpuContext } from "./types.js"; export interface CreateSamplerOptions extends GPUSamplerDescriptor { /** Shorthand setting magFilter, minFilter and mipmapFilter at once. */ filter?: GPUFilterMode; /** Shorthand setting addressModeU/V/W at once. */ addressMode?: GPUAddressMode; } /** * Create a sampler: a thin alias for `device.createSampler` with filtering and * address mode shorthands. Returns a raw GPUSampler — samplers own no GPU * memory and need no dispose. * * ```js * const sampler = gpu.createSampler(ctx, { * filter: "linear", * addressMode: "repeat", * }); * ``` */ export declare function createSampler(ctx: GpuContext, options?: CreateSamplerOptions): GPUSampler; //# sourceMappingURL=sampler.d.ts.map