Expand description
Pass: _qa..._qh stub injection.
Structsยง
- QaUses ๐
Constantsยง
- QA_
LETTERS ๐ - Letters
a..hmap to the 8 four-channel groups packingq1..q32.
Functionsยง
- find_
brace_ ๐after - Locate the byte position immediately after the first
{at or paststart.shader_body { โฆ }โs parser hands us a span starting at the keyword, not the brace, so this helper bridges the gap. ReturnsNonewhen no{is found (malformed source โ we skip injection in that case). - inject_
qa_ ๐stub _qa/_qb/โฆ/_qhare MD2 runtime-defined aliases that pack the 32q1..q32evaluator channels into 8 รfloat4(_qa = float4(q1, q2, q3, q4),_qb = float4(q5, โฆ), etc.). User comp shaders read them directly, typically viamul(uv, float2x2(_qb))for kaleidoscope rotation.- qa_
letter_ ๐index - Returns
Some(bit_index)ifnameis one of_qa..._qh. - scan_
block_ ๐for_ qa - scan_
expr_ ๐for_ qa - scan_
stmt_ ๐for_ qa