| 800 | |
| 801 | |
| 802 | uint32_t SpirvModule::defFunctionType( |
| 803 | uint32_t returnType, |
| 804 | uint32_t argCount, |
| 805 | const uint32_t* argTypes) { |
| 806 | std::vector<uint32_t> args; |
| 807 | args.push_back(returnType); |
| 808 | |
| 809 | for (uint32_t i = 0; i < argCount; i++) |
| 810 | args.push_back(argTypes[i]); |
| 811 | |
| 812 | return this->defType(spv::OpTypeFunction, |
| 813 | args.size(), args.data()); |
| 814 | } |
| 815 | |
| 816 | |
| 817 | uint32_t SpirvModule::defStructType( |
no test coverage detected