On Wed Dec 13 13:17:23 2023 +0000, Giovanni Mascellani wrote:
Mostly for my ignorance, which kind of declarations should be blocked here?
sm1 uses the same opcode (DCL) for semantics and textures. You may notice in assembly that they show up as e.g. "dcl_texcoord" and "dcl_2d", but the _texcoord and _2d parts are not part of the opcode number proper.
Eventually we probably want this kind of scanning to be done in the frontend, since what we're scanning for ends up being different for every kind of bytecode we consume.