summaryrefslogtreecommitdiff
path: root/source/id_descriptor.h
AgeCommit message (Collapse)AuthorFilesLines
2018-08-03Rewrite include guards (#1793)dan sinclair1-3/+3
This CL rewrites the include guards to make PRESUBMIT.py include guard check happy.
2018-07-07Change libspirv to spvtools namespace (#1678)dan sinclair1-2/+2
This CL changes all of the libspirv namespace code to spvtools to match the rest of the code base.
2017-11-21Add new compression algorithm and modelsAndrey Tuganov1-1/+9
Add new "short descriptor" algorithm to MARK-V codec. Add three shader compression models: lite - fast, poor compression mid - balanced max - best compression
2017-11-08Re-format files in source, source/opt, source/util, source/val and tools.Diego Novillo1-6/+2
NFC. This just makes sure every file is formatted following the formatting definition in .clang-format. Re-formatted with: $ clang-format -i $(find source tools include -name '*.cpp') $ clang-format -i $(find source tools include -name '*.h')
2017-08-10Add id descriptor feature to SPIR-VAndrey Tuganov1-0/+59
Id descriptors are computed as a recursive hash of all instructions used to define an id. Descriptors are invarint of actual id values and the similar code in different files would produce the same descriptors. Multiple ids can have the same descriptor. For example %1 = OpConstant %u32 1 %2 = OpConstant %u32 1 would produce two ids with the same descriptor. But %3 = OpConstant %s32 1 %4 = OpConstant %u32 2 would have descriptors different from %1 and %2. Descriptors will be used as handles of move-to-front sequences in SPIR-V compression.