Adding validation for vector data rule.
authorEhsan Nasiri <ehsann@google.com>
Fri, 4 Nov 2016 22:31:21 +0000 (18:31 -0400)
committerDavid Neto <dneto@google.com>
Tue, 8 Nov 2016 22:48:30 +0000 (17:48 -0500)
commit6c899a52f9ce673e9530bcaa4da27ff24d10c0e9
tree41ee7a08b7012f243203650cb013615d21a2b892
parent4f57e140bf078bc27e1c5826929a3aa6fe46de93
Adding validation for vector data rule.

Number of components in a vector can be 2 or 3 or 4. If Vector16
capability is used, 8 and 16 components are also allowed.
Also added unit tests for vector data rule.
include/spirv-tools/libspirv.h
source/CMakeLists.txt
source/validate.cpp
source/validate.h
source/validate_datarules.cpp [new file with mode: 0644]
test/val/CMakeLists.txt
test/val/Validate.Data.cpp [new file with mode: 0644]
test/val/ValidateID.cpp