未验证 提交 51be2800 编写于 作者: M Michael Herzog 提交者: GitHub

WebGPURenderer: Replace deprecated constant. (#22330)

上级 33d11d87
......@@ -206,7 +206,7 @@ class WebGPUTextures {
depthOrArrayLayers: 1
},
format: colorTextureFormat,
usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.SAMPLED
usage: GPUTextureUsage.RENDER_ATTACHMENT | GPUTextureUsage.TEXTURE_BINDING
} );
this.info.memory.textures ++;
......@@ -316,7 +316,7 @@ class WebGPUTextures {
const mipLevelCount = this._getMipLevelCount( texture, width, height, needsMipmaps );
const format = this._getFormat( texture );
let usage = GPUTextureUsage.SAMPLED | GPUTextureUsage.COPY_DST;
let usage = GPUTextureUsage.TEXTURE_BINDING | GPUTextureUsage.COPY_DST;
if ( needsMipmaps === true ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册