Skip to main content

Module shader

Module shader 

Source
Expand description

Tier A Shader export and Tier C no-blob, Int, code and player/parameter corrections. Malformed legacy blobs and unfillable replacements have named Tier U refusals. Entry point: export/ShaderConverter.py:41-89; classes/legacy_patch/Shader.py:4-7.

Structs§

Program

Enums§

Error
Unsupported
Legacy layouts without an established sample/reference contract.

Constants§

HEADER

Functions§

direct_stage
Convert a caller-supplied stage using the same metered field and output walk. program_blobs contains synthetic little-endian tables of current fields. Retains UnityPy’s property-type refusals for Python helper compatibility.
export
Export one Shader into a fallibly grown buffer charged to meter. The object’s typetree reads retain the source meter, as E1’s do.
export_parsed
Convert an already read tree. Useful for callers with a supplied typetree, and for bounded fuzzing of arbitrary field shapes.
export_with_cap
Convert current fields using the owning file’s decompression bound.
export_with_cap_unitypy_properties
Binding adapter: retain UnityPy’s Int-property and sub-program code raises using the same metered conversion and error ordering as the native exporter.
validate_blob
Validate a platform’s table and every subprogram without producing text.