encodeMaterialSection function
The payload of ShaderBundle.materialSection: each stage's
material-language source, by stage name — P8.
Versioned inside the document, as the WebGPU section is, so the payload can grow without the container's version moving.
Implementation
ByteData encodeMaterialSection(Map<String, String> sources) =>
_encodeSources(materialSectionVersion, sources);