aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
AgeCommit message (Collapse)Author
2020-08-01Stream SPIR-V instructions directly to a binaryReinUsesLisp
Before this commit sirit generated a stream of tokens that would then be inserted to the final SPIR-V binary. This design was carried from the initial design of manually inserting opcodes into the code. Now that all instructions but labels are inserted when their respective function is called, the old design can be dropped in favor of generating a valid stream of SPIR-V opcodes. The API for variables is broken, but adopting the new one is trivial. Instead of calling OpVariable and then adding a global or local variable, OpVariable was removed and global or local variables are generated when they are called. Avoiding duplicates is now done with an std::unordered_set instead of using a linear search jumping through vtables.
2019-10-24tests/main: Test assembled binaryReinUsesLisp
Previously the test couldn't fail unless it crashed. Now that sirit does not do work "behind the scenes" that can change between versions (like declaring capabilities), we can have this checking.
2019-10-18Remove Emit entry in favor of auto-emitting codeReinUsesLisp
All instructions but OpVariable and OpLabel are automatically emitted. These functions have to call AddLocalVariable/AddGlobalVariable or AddLabel respectively.
2019-10-18Assemble uint32_t instead of uint8_tReinUsesLisp
Vulkan receives SPIR-V modules with a uint32_t alignment. Returning uint8_t forced users to invoke undefined behaviour (reinterpret_cast) or copy.
2019-07-14Relicense to The BSD 3-clause licenseReinUsesLisp
2019-03-14tests: Fix build errorReinUsesLisp
2019-03-11Add ellipsis overloads for instructions ending in vectorsReinUsesLisp
2018-11-16Upgrade from LGPLv2.1 to LGPLv3ReinUsesLisp
2018-11-16Fixup testsReinUsesLisp
2018-11-01Fixup build issuesReinUsesLisp
2018-10-31Add Op* prefix to instructions that have to be emitedReinUsesLisp
2018-10-31Update testReinUsesLisp
2018-08-31OpName returns its targetReinUsesLisp
2018-08-31Add OpName and debug symbolsReinUsesLisp
2018-08-31Test branchesReinUsesLisp
2018-08-31Rename Assembly -> AssembleReinUsesLisp
2018-08-28Add OpConstantNullReinUsesLisp
2018-08-28Add OpConstantSamplerReinUsesLisp
2018-08-27Add OpConstantCompositeReinUsesLisp
2018-08-27Add OpConstantReinUsesLisp
2018-08-26Fixup License header 2 -> 2.1ReinUsesLisp
2018-08-26Fixup LicenseReinUsesLisp
2018-08-26Add boolean constantsReinUsesLisp
2018-08-26Add more typesReinUsesLisp
2018-08-26Add some typesReinUsesLisp
2018-08-25Rename Ref -> OpReinUsesLisp
2018-08-25Implement stuffReinUsesLisp
2018-08-23alohaReinUsesLisp