Skip to content

Latest commit

 

History

History
39 lines (20 loc) · 1.55 KB

File metadata and controls

39 lines (20 loc) · 1.55 KB

Diagnostic Codes

Every ShaderOS diagnostic includes a code in the format TS.SO.V###.


TS.SO.V001 — Broken shader reference

Severity: Error · Penalty: −40

The material's shader slot references a shader that no longer exists. Unity substitutes the internal error shader, producing pink/magenta rendering.

Resolution: Reassign the shader in the Material Inspector. If the shader asset was moved or renamed, use the Inspector to reassign it. If deleted, assign an appropriate replacement.


TS.SO.V002 — Missing texture reference

Severity: Error · Penalty: −10 per slot

A texture property slot references a texture asset that was deleted from the project. The slot appears assigned but the texture cannot be loaded.

Distinct from an empty slot. An empty slot (never assigned) is not flagged.

Resolution: Reassign the slot to a valid texture, or clear it if the texture is no longer needed.


TS.SO.V003 — SRP Batcher incompatible

Severity: Warning · Penalty: −5

The material's shader does not meet SRP Batcher requirements. Each draw call from this material requires a separate render state setup. Rendering is correct; performance is suboptimal.

Only emitted when URP or HDRP is the active render pipeline.

Resolution: Declare all per-material properties inside a CBUFFER_START(UnityPerMaterial) ... CBUFFER_END block. See SRP Batcher Analysis.

TS.SO.V001 through V003 are the diagnostics the current scan engine produces. Additional codes will be documented here as they ship.