Shader hot reload #27
No assignees
Labels
No labels
area/build
area/content
area/editor
area/engine
area/graphics
area/platform
area/repo-wide
area/tests
area/tools
bug
optional
roadmap
size/L
size/M
size/S
No project
No milestone
Blocks
Depends on
#38 Retire EngineDLL; the shader compiler as a library
UnflavoredMeson/Primal_Plus_Plus
#16 Job system module primal.jobs
UnflavoredMeson/Primal_Plus_Plus
#26 Shader packs for material shaders and variants
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#27
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Editing a shader and seeing it change without restarting is the fastest way to learn and debug rendering.
Decided
watch_engine_shaders(),watch_shader_pack(manifest, groups, platform),shader_hot_reload::update()between frames,stop()before the groups go.content::update_shader_group()+graphics::reload_shaders(), which rebuilds every pipeline in place (render items keep their pipeline ids). Pipelines remember their sources; pipeline caches are keyed by shader hashes, not byte-code pointers.Read first
UnflavoredMeson/Primal#46.Steps
reload_shaders()to the D3D12 backend (Vulkan gets it in S6).TestShader.hlslwhile the renderer test runs.Done when
Claude can help with
Learn