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

[WebGPU] Clean up renderer resources on scene change #37

Open
johnoyo opened this issue May 29, 2024 · 0 comments
Open

[WebGPU] Clean up renderer resources on scene change #37

johnoyo opened this issue May 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working WebGPU

Comments

@johnoyo
Copy link
Collaborator

johnoyo commented May 29, 2024

Traceback (most recent call last):
File "C:\dev\pyGandalf\pyGandalf\examples\WebGPU\example02.py", line 273, in
main()
File "C:\dev\pyGandalf\pyGandalf\examples\WebGPU\example02.py", line 270, in main
Application().start()
File "c:\dev\pygandalf\pyGandalf\core\application.py", line 77, in start
cls.instance.window.dispatch_main_loop(main_loop)
File "c:\dev\pygandalf\pyGandalf\core\webgpu_window.py", line 60, in dispatch_main_loop
main_loop()
File "c:\dev\pygandalf\pyGandalf\core\application.py", line 66, in main_loop
SceneManager().on_update(cls.instance.delta_time)
File "c:\dev\pygandalf\pyGandalf\scene\scene_manager.py", line 42, in on_update
cls.instance.active_scene.on_update(ts)
File "c:\dev\pygandalf\pyGandalf\scene\scene.py", line 250, in on_update
system.on_update_base(ts)
File "c:\dev\pygandalf\pyGandalf\systems\system.py", line 116, in on_update_base
self.on_update_system(ts)
File "c:\dev\pygandalf\pyGandalf\systems\webgpu_rendering_system.py", line 112, in on_update_system
WebGPURenderer().end_render_pass()
File "c:\dev\pygandalf\pyGandalf\renderer\webgpu_renderer.py", line 248, in end_render_pass
cls.instance.current_render_pass.end()
File "C:\dev\pyGandalf\pyGandalf-venv\lib\site-packages\wgpu\backends\wgpu_native_api.py", line 2618, in end
libf.wgpuRenderPassEncoderEnd(self._internal)
File "C:\dev\pyGandalf\pyGandalf-venv\lib\site-packages\wgpu\backends\wgpu_native_helpers.py", line 314, in proxy_func
raise wgpu_error # the frame above is more interesting ↑↑
wgpu._classes.GPUValidationError: Validation Error

Caused by:
In wgpuRenderPassEncoderEnd
note: encoder = <CommandBuffer-(0, 1000, Vulkan)>
In a set_vertex_buffer command
note: buffer = <Buffer-(1611, 1, Vulkan)>
Vertex buffer index 16 is greater than the device's requested max_vertex_buffers limit 16

@johnoyo johnoyo added bug Something isn't working WebGPU labels May 29, 2024
@johnoyo johnoyo added this to the WebGPU examples milestone May 29, 2024
@johnoyo johnoyo self-assigned this May 29, 2024
@johnoyo johnoyo mentioned this issue May 29, 2024
@johnoyo johnoyo changed the title [WebGPU] Clean up renderer resourses on scene change [WebGPU] Clean up renderer resources on scene change May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working WebGPU
Projects
None yet
Development

No branches or pull requests

1 participant