Пример #1
0
 partial void SetUp(OpTypeStruct instruction, SpirvInstructionTreeBuilder treeBuilder)
 {
     _fields.Clear();
     for (var index = 0; index < instruction.MemberTypes.Count; index++)
     {
         _fields.Add(new TypeStructureField()
         {
             Type = treeBuilder.ResolveType(instruction.MemberTypes[index])
         });
     }
     SetUpDecorations(instruction, treeBuilder);
     if (_fields.Any(_ => _.ByteOffset == null))
     {
         UpdateFieldOffsets();
     }
     EvaluateSizeAndAlignment();
 }
Пример #2
0
 partial void SetUp(OpTypeStruct instruction, SpirvInstructionTreeBuilder treeBuilder);