mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
c7fb6cea3d
As more users use compute in Godot 4, the way they do is most likely incompatible when running on separate threads and will start erroring soon as we improve the thread safety of the render thread. To properly run code on the render thread, this function was added. Use like this: ```GDScript func initialize_compute_code(): .... func update_compute_code(custom_data): ... func _ready(): RenderingServer.call_on_render_thread( initialize_compute_code ) func _process(): RenderingServer.call_on_render_thread( update_compute_code.bind(with_data) ) ``` |
||
---|---|---|
.. | ||
dummy | ||
environment | ||
renderer_rd | ||
storage | ||
renderer_canvas_cull.cpp | ||
renderer_canvas_cull.h | ||
renderer_canvas_render.cpp | ||
renderer_canvas_render.h | ||
renderer_compositor.cpp | ||
renderer_compositor.h | ||
renderer_geometry_instance.cpp | ||
renderer_geometry_instance.h | ||
renderer_scene_cull.cpp | ||
renderer_scene_cull.h | ||
renderer_scene_occlusion_cull.cpp | ||
renderer_scene_occlusion_cull.h | ||
renderer_scene_render.cpp | ||
renderer_scene_render.h | ||
renderer_viewport.cpp | ||
renderer_viewport.h | ||
rendering_device_binds.cpp | ||
rendering_device_binds.h | ||
rendering_device.cpp | ||
rendering_device.h | ||
rendering_method.cpp | ||
rendering_method.h | ||
rendering_server_default.cpp | ||
rendering_server_default.h | ||
rendering_server_globals.cpp | ||
rendering_server_globals.h | ||
SCsub | ||
shader_compiler.cpp | ||
shader_compiler.h | ||
shader_language.cpp | ||
shader_language.h | ||
shader_preprocessor.cpp | ||
shader_preprocessor.h | ||
shader_types.cpp | ||
shader_types.h | ||
shader_warnings.cpp | ||
shader_warnings.h |