shaders
pykraken.shaders At a glance
1 membersReference
PYTHON APIbake
functionbake(fragment_path: str | PathLike, output_base_path: str | PathLike) -> NoneBake a shader from HLSL source to SPIR-V, DXIL, and MSL formats.
It is recommended to use the pykraken cli tool for shader baking rather than calling this directly.
Args
- fragment_path (
str) — Base file name of the input HLSL shader. - output_base_path (
str) — Base file name to use for the generated outputs. The generated files will have .spv, .dxil, and .msl extensions.