Functions in shaders.
bake(fragment_path: str | PathLike[str], output_base_path: str | PathLike[str]) → Nonebake(fragment_path: str | PathLike[str], output_base_path: str | PathLike[str]) → 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 : Base file name of the input HLSL shader.output_base_path : Base file name to use for the generated outputs. The generated files will have .spv, .dxil, and .msl extensions.