Skip to content

WebGPU resize renderTarget error #30766

Open
@Makio64

Description

@Makio64

Description

I run into :

Destroyed texture [Texture (unlabeled 2430x1488 px, TextureFormat::RGBA8Unorm)] used in a submit.
 - While calling [Queue].Submit([[CommandBuffer from CommandEncoder "renderContext_0"]])
Understand this warningAI
three.webgpu.js:26767 Bindings._update: binding should be available: NodeSampledTexture false Texture Texture true
_update @ three.webgpu.js:26767

Here the setup :

  • Scene A : a particles mesh ( using compute shader ) is render to a renderTarget (rt1)
  • Scene B : a quad using as colorNode texture(rt1.texture) is render via Postprocessing with afterImage pass to a renderTarget rt2
  • Scene C : use rt2 in another quad + other effects for final composition..

All works as expected until I resize rt1 & rt2 then i run into this unexpected error and the resize is not effective.

pipelines :
particles compute -> render particles scene to rt1 -> scene2 using node with texture(rt1.texture) render via postprocessing afterImage to rt2-> final render compositing

Reproduction steps

see above

Code

X

Live example

I'll do it when i have time. but i suspect it's using the texture(rt1.texture) which crash everything.

Screenshots

Image

Version

r175dev

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions