Bug 1972921 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

If the WebGPU canvas texture is written by a compute pass instead of a render pass, the contents are not displayed.

This problem can be seen at:
* https://webgpu.github.io/webgpu-samples/?sample=cornell
* https://webgpufundamentals.org/webgpu/resources/editor.html?url=/webgpu/lessons/..%2Fwebgpu-storage-texture-canvas.html

The problem goes away if something like the following is added at the end of command encoding:

```
    commandEncoder.beginRenderPass({
        colorAttachments: [
        {
          view: this.outputView,
          clearValue: [1, 0.2, 0.3, 1],
          loadOp: 'load',
          storeOp: 'store',
        },
        ]
    }).end();

```

It seems suspect to me that we do not call [`TrackPresentationContext`](https://searchfox.org/mozilla-central/search?q=TrackPresentationContext&path=&case=false&regexp=false) for textures bound to a compute pass.
If the WebGPU canvas texture is written by a compute pass instead of a render pass, the contents are not displayed.

This problem can be seen at:
* https://webgpu.github.io/webgpu-samples/?sample=cornell (bug 1972628)
* https://webgpufundamentals.org/webgpu/resources/editor.html?url=/webgpu/lessons/..%2Fwebgpu-storage-texture-canvas.html (bug 1962747)

The problem goes away if something like the following is added at the end of command encoding:

```
    commandEncoder.beginRenderPass({
        colorAttachments: [
        {
          view: this.outputView,
          clearValue: [1, 0.2, 0.3, 1],
          loadOp: 'load',
          storeOp: 'store',
        },
        ]
    }).end();

```

It seems suspect to me that we do not call [`TrackPresentationContext`](https://searchfox.org/mozilla-central/search?q=TrackPresentationContext&path=&case=false&regexp=false) for textures bound to a compute pass.
If the WebGPU canvas texture is written by a compute pass instead of a render pass, the contents are not displayed.

This problem can be seen at:
* https://webgpu.github.io/webgpu-samples/?sample=cornell (bug 1972628)
* https://webgpufundamentals.org/webgpu/resources/editor.html?url=/webgpu/webgpu-storage-texture-canvas.html (bug 1962747)

The problem goes away if something like the following is added at the end of command encoding:

```
    commandEncoder.beginRenderPass({
        colorAttachments: [
        {
          view: this.outputView,
          clearValue: [1, 0.2, 0.3, 1],
          loadOp: 'load',
          storeOp: 'store',
        },
        ]
    }).end();

```

It seems suspect to me that we do not call [`TrackPresentationContext`](https://searchfox.org/mozilla-central/search?q=TrackPresentationContext&path=&case=false&regexp=false) for textures bound to a compute pass.

Back to Bug 1972921 Comment 0