Added Vulkan-specifc checks to image validation
authorAndrey Tuganov <andreyt@google.com>
Tue, 23 Jan 2018 20:02:27 +0000 (15:02 -0500)
committerLei Zhang <antiagainst@google.com>
Wed, 24 Jan 2018 22:05:42 +0000 (14:05 -0800)
commitbdc78377bca30fb308d38277eb72eb3ffaa287b0
tree3601cff409929b39d2b5d3f7dacc0201952a8900
parentc4835e1bd8f179f141b116725430a3b34b002667
Added Vulkan-specifc checks to image validation

Implemented Vulkan-specific rules:
- OpTypeImage must declare a scalar 32-bit float or 32-bit integer type
for the “Sampled Type”.
- OpSampledImage must only consume an “Image” operand whose type has its
“Sampled” operand set to 1.
source/spirv_target_env.cpp
source/spirv_target_env.h
source/validate_image.cpp
test/val/val_image_test.cpp