Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.initRenderTarget missing in WebGPURenderer #29898

Open
Makio64 opened this issue Nov 15, 2024 · 3 comments
Open

.initRenderTarget missing in WebGPURenderer #29898

Makio64 opened this issue Nov 15, 2024 · 3 comments
Milestone

Comments

@Makio64
Copy link
Contributor

Makio64 commented Nov 15, 2024

Description

The initRenderTarget is missing in the WebGPURenderer
https://threejs.org/docs/#api/en/renderers/WebGLRenderer.initRenderTarget

Solution

implement it

Alternatives

Maybe there is another way in webgpu to init it before using it i'm not aware of it.

Additional context

No response

@Makio64
Copy link
Contributor Author

Makio64 commented Nov 15, 2024

It appears WebGPURenderer also missing initTexture

@RenaudRohlinger RenaudRohlinger added this to the r171 milestone Nov 15, 2024
@sunag
Copy link
Collaborator

sunag commented Nov 16, 2024

image

WebGPURenderer should initialize the texture if it uses copyTextureToTexture automatically.

@Makio64
Copy link
Contributor Author

Makio64 commented Nov 18, 2024

image

WebGPURenderer should initialize the texture if it uses copyTextureToTexture automatically.

I also want to call it before display it the first time to init the renderTexture in the memory before drawing on it and avoid extra uploadtime, same for initTexture to avoid upload when it matters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants