webgpuCacheSampler.d.ts 722 B

12345678910111213141516
  1. import type { TextureSampler } from "../../Materials/Textures/textureSampler";
  2. import type { Nullable } from "../../types";
  3. /** @internal */
  4. export declare class WebGPUCacheSampler {
  5. private _samplers;
  6. private _device;
  7. disabled: boolean;
  8. constructor(device: GPUDevice);
  9. static GetSamplerHashCode(sampler: TextureSampler): number;
  10. private static _GetSamplerFilterDescriptor;
  11. private static _GetWrappingMode;
  12. private static _GetSamplerWrappingDescriptor;
  13. private static _GetSamplerDescriptor;
  14. static GetCompareFunction(compareFunction: Nullable<number>): GPUCompareFunction;
  15. getSampler(sampler: TextureSampler, bypassCache?: boolean, hash?: number, label?: string): GPUSampler;
  16. }