MODULE v1.8.0

shaders

pykraken.shaders

At a glance

1 members

Reference

PYTHON API

bake

function
bake(fragment_path: str | PathLike, output_base_path: str | PathLike) -> None

Bake 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.

Find your next step

Start typing to search the manual.