Exemplo n.º 1
0
        public override void Parse(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount - 1;

            IdResult = Spv.IdResult.Parse(reader, end - reader.Position);
            reader.Instructions.Add(this);
            Qualifier = Spv.AccessQualifier.Parse(reader, end - reader.Position);
        }
Exemplo n.º 2
0
 /// <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)
 {
     SampledType     = Spv.IdRef.Parse(reader, end - reader.Position);
     Dim             = Spv.Dim.Parse(reader, end - reader.Position);
     Depth           = Spv.LiteralInteger.Parse(reader, end - reader.Position);
     Arrayed         = Spv.LiteralInteger.Parse(reader, end - reader.Position);
     MS              = Spv.LiteralInteger.Parse(reader, end - reader.Position);
     Sampled         = Spv.LiteralInteger.Parse(reader, end - reader.Position);
     ImageFormat     = Spv.ImageFormat.Parse(reader, end - reader.Position);
     AccessQualifier = Spv.AccessQualifier.ParseOptional(reader, end - reader.Position);
 }
Exemplo n.º 3
0
 public void SetUp(OpTypeImage op, SpirvInstructionTreeBuilder treeBuilder)
 {
     SampledType     = treeBuilder.ResolveType(op.SampledType);
     Dim             = op.Dim;
     Depth           = op.Depth;
     Arrayed         = op.Arrayed;
     MS              = op.MS;
     Sampled         = op.Sampled;
     ImageFormat     = op.ImageFormat;
     AccessQualifier = op.AccessQualifier;
     SetUpDecorations(op, treeBuilder);
 }
Exemplo n.º 4
0
        public override void Parse(WordReader reader, uint wordCount)
        {
            var end = reader.Position + wordCount - 1;

            IdResult = Spv.IdResult.Parse(reader, end - reader.Position);
            reader.Instructions.Add(this);
            SampledType     = Spv.IdRef.Parse(reader, end - reader.Position);
            Dim             = Spv.Dim.Parse(reader, end - reader.Position);
            Depth           = Spv.LiteralInteger.Parse(reader, end - reader.Position);
            Arrayed         = Spv.LiteralInteger.Parse(reader, end - reader.Position);
            MS              = Spv.LiteralInteger.Parse(reader, end - reader.Position);
            Sampled         = Spv.LiteralInteger.Parse(reader, end - reader.Position);
            ImageFormat     = Spv.ImageFormat.Parse(reader, end - reader.Position);
            AccessQualifier = Spv.AccessQualifier.ParseOptional(reader, end - reader.Position);
        }
Exemplo n.º 5
0
 public void SetUp(OpTypePipe op, SpirvInstructionTreeBuilder treeBuilder)
 {
     Qualifier = op.Qualifier;
     SetUpDecorations(op, treeBuilder);
 }
Exemplo n.º 6
0
 /// <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)
 {
     Qualifier = Spv.AccessQualifier.Parse(reader, end - reader.Position);
 }