|
@@ -214,6 +214,8 @@ export class WebGPUTextureHelper {
|
|
|
commandEncoder = this._device.createCommandEncoder({});
|
|
|
}
|
|
|
|
|
|
+ commandEncoder!.pushDebugGroup("start create mipmaps");
|
|
|
+
|
|
|
for (let i = 1; i < mipLevelCount; ++i) {
|
|
|
const passEncoder = commandEncoder!.beginRenderPass({
|
|
|
colorAttachments: [{
|
|
@@ -251,6 +253,8 @@ export class WebGPUTextureHelper {
|
|
|
passEncoder.endPass();
|
|
|
}
|
|
|
|
|
|
+ commandEncoder!.popDebugGroup();
|
|
|
+
|
|
|
if (useOwnCommandEncoder) {
|
|
|
this._device.defaultQueue.submit([commandEncoder!.finish()]);
|
|
|
commandEncoder = null as any;
|