Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpVariable in OpSpecConstantOp. (KhronosGroup#186)
* Fixed problem with OpSpecConstantOp. In one of last change of spirv spec was added following change: "Public SPIRV-Headers issues KhronosGroup#12 and KhronosGroup#13 and Khronos SPIR-V issue KhronosGroup#65: Allow OpVariable as an initializer for another OpVariable instruction or the Base of an OpSpecConstantOp with an AccessChain opcode." In this way, OpVariable can be initialize before OpSpecConstantOp. To do this, it's necessary add OpSpecConstantOp in one container with OpVariable in TopologicalSort. After this change, OpSpecConstantOp and OpVariable instructions will be add to spirv file in the right order. * Renamed InstructionVec to ConstAndVarVec and fixed indentation
- Loading branch information