public override void Parse(WordReader reader, uint wordCount) { var end = reader.Position + wordCount - 1; AddressingModel = Spv.AddressingModel.Parse(reader, end - reader.Position); MemoryModel = Spv.MemoryModel.Parse(reader, end - reader.Position); }
/// <summary> /// Read instruction operands from the bytecode source. /// </summary> /// <param name="reader">Bytecode source.</param> /// <param name="end">Index of a next word right after this instruction.</param> public override void ParseOperands(WordReader reader, uint end) { AddressingModel = Spv.AddressingModel.Parse(reader, end - reader.Position); Value = Spv.MemoryModel.Parse(reader, end - reader.Position); }
private void SetUp(OpMemoryModel op, SpirvInstructionTreeBuilder treeBuilder) { AddressingModel = op.AddressingModel; Value = op.Value; SetUpDecorations(op, treeBuilder); }
public MemoryModel(Spv.AddressingModel addressingModel, Spv.MemoryModel value, string debugName = null) { this.AddressingModel = addressingModel; this.Value = value; DebugName = debugName; }