symforce.codegen.backends.slang.slang_code_printer module

class SlangCodePrinter(settings=None, override_methods=None)[source]

Bases: C11CodePrinter

SymForce code printer for Slang. Based on the SymPy C printer with Slang/HLSL math intrinsics.

Only float is supported: Slang reads unsuffixed literals as float, so double code would lose precision in its constants.

Parameters: