| 855 | |
| 856 | |
| 857 | uint32_t SpirvModule::defImageType( |
| 858 | uint32_t sampledType, |
| 859 | spv::Dim dimensionality, |
| 860 | uint32_t depth, |
| 861 | uint32_t arrayed, |
| 862 | uint32_t multisample, |
| 863 | uint32_t sampled, |
| 864 | spv::ImageFormat format) { |
| 865 | std::array<uint32_t, 7> args = {{ |
| 866 | sampledType, |
| 867 | static_cast<uint32_t>(dimensionality), |
| 868 | depth, arrayed, |
| 869 | multisample, |
| 870 | sampled, |
| 871 | static_cast<uint32_t>(format) |
| 872 | }}; |
| 873 | |
| 874 | return this->defType(spv::OpTypeImage, |
| 875 | args.size(), args.data()); |
| 876 | } |
| 877 | |
| 878 | |
| 879 | uint32_t SpirvModule::defSampledImageType( |
no test coverage detected