ソースを参照

Remove unneeded sampler property

Popov72 4 年 前
コミット
64233dc946
1 ファイル変更0 行追加3 行削除
  1. 0 3
      src/Engines/WebGPU/webgpuHardwareTexture.ts

+ 0 - 3
src/Engines/WebGPU/webgpuHardwareTexture.ts

@@ -14,13 +14,11 @@ export class WebGPUHardwareTexture implements HardwareTextureWrapper {
     }
     }
 
 
     public view: Nullable<GPUTextureView>;
     public view: Nullable<GPUTextureView>;
-    public sampler: Nullable<GPUSampler>;
     public format: GPUTextureFormat = WebGPUConstants.TextureFormat.RGBA8Unorm;
     public format: GPUTextureFormat = WebGPUConstants.TextureFormat.RGBA8Unorm;
 
 
     constructor(existingTexture: Nullable<GPUTexture> = null) {
     constructor(existingTexture: Nullable<GPUTexture> = null) {
         this._webgpuTexture = existingTexture;
         this._webgpuTexture = existingTexture;
         this.view = null;
         this.view = null;
-        this.sampler = null;
     }
     }
 
 
     public set(hardwareTexture: GPUTexture): void {
     public set(hardwareTexture: GPUTexture): void {
@@ -46,7 +44,6 @@ export class WebGPUHardwareTexture implements HardwareTextureWrapper {
     public reset(): void {
     public reset(): void {
         this._webgpuTexture = null;
         this._webgpuTexture = null;
         this.view = null;
         this.view = null;
-        this.sampler = null;
     }
     }
 
 
     public release(): void {
     public release(): void {