Hi Khronos Team,
My name is Alwyn, a software developer and entrepreneur from South Africa. In recent months I’ve started work on an open source virtual machine for SPIR-V binaries.
During the development process I made extensively use of the LunarG test files, by compiling them to SPIR-V binaries using spir-v.com. Most of the binaries produced by the compiler is exactly according to spec, and no errors are raised by the {Zoclee}™ Shade virtual machine. I am however running into a problem with the TextureSampleProjGrad instruction in the texture.vert test file (attached source and SPIR-V binary). According to the official SPIR-V spec, this instruction is NOT of variable length, and should be a size of 7 words. However, this instruction has a word count of 6 bytes in the binary file.
'm not sure if this inconsistency is due to an error in the specification, a bug in the gslang compiler, or perhaps something I misunderstood about the instruction, and are hoping that I could find more information on this forum on how to resolve this issue.
Thank you in advance,
Alwyn
A huge fan of SPIR-V