12345678910111213141516171819202122232425262728293031323334353637383940 |
- import type { HardwareTextureWrapper } from "../../Materials/Textures/hardwareTextureWrapper";
- import type { Nullable } from "../../types";
- /** @internal */
- export declare class WebGPUHardwareTexture implements HardwareTextureWrapper {
- /**
- * Cache of RenderPassDescriptor and BindGroup used when generating mipmaps (see WebGPUTextureHelper.generateMipmaps)
- * @internal
- */
- _mipmapGenRenderPassDescr: GPURenderPassDescriptor[][];
- /** @internal */
- _mipmapGenBindGroup: GPUBindGroup[][];
- /**
- * Cache for the invertYPreMultiplyAlpha function (see WebGPUTextureHelper)
- * @internal
- */
- _copyInvertYTempTexture?: GPUTexture;
- /** @internal */
- _copyInvertYRenderPassDescr: GPURenderPassDescriptor;
- /** @internal */
- _copyInvertYBindGroup: GPUBindGroup;
- /** @internal */
- _copyInvertYBindGroupWithOfst: GPUBindGroup;
- private _webgpuTexture;
- private _webgpuMSAATexture;
- get underlyingResource(): Nullable<GPUTexture>;
- getMSAATexture(index?: number): Nullable<GPUTexture>;
- setMSAATexture(texture: GPUTexture, index?: number): void;
- releaseMSAATexture(): void;
- view: Nullable<GPUTextureView>;
- viewForWriting: Nullable<GPUTextureView>;
- format: GPUTextureFormat;
- textureUsages: number;
- textureAdditionalUsages: number;
- constructor(existingTexture?: Nullable<GPUTexture>);
- set(hardwareTexture: GPUTexture): void;
- setUsage(_textureSource: number, generateMipMaps: boolean, is2DArray: boolean, isCube: boolean, is3D: boolean, width: number, height: number, depth: number): void;
- createView(descriptor?: GPUTextureViewDescriptor, createViewForWriting?: boolean): void;
- reset(): void;
- release(): void;
- }
|