ShaderCompilerTool at build time #24
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
#25 Single sources for shader constants, bindings and layouts
UnflavoredMeson/Primal_Plus_Plus
#28 ContentTools on both OSes
UnflavoredMeson/Primal_Plus_Plus
#2 CMake build for Linux next to MSBuild, warnings as errors, pinned downloads
UnflavoredMeson/Primal_Plus_Plus
#6 Logging through primal::log
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#24
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
Engine shaders are compiled at run time by EngineDLL today. Compiling at build time catches errors in the build, and one HLSL source can make both DXIL and SPIR-V.
Decided
UnflavoredMeson/Primal#45: same output quality, about 6x slower, no DXIL on Linux).Engine/Graphics/Shaders/.ShaderCompilerToolruns as a build step on both build systems and writesx64/<Config>/shaders/{d3d12,vulkan}/shaders.bin(aPSHBlayout read bycontent::get_engine_shaders()).shaders.bin.keyholds a hash of the format version, the DXC version and all arguments; shaders recompile only when it changes.Read first
EngineDLL/ShaderCompilation.cpponmaster.Steps
Engine/Graphics/Shaders/and update both builds.PSHBread/write tests in UnitTests.shaders.bininstead of compiling.Done when
shaders.bin; EngineTest's renderer runs on D3D12 with it; 0 warnings; tidy 0.Claude can help with
-spirv,-fvk-*-shift).Learn