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(); }
partial void SetUp(OpTypeStruct instruction, SpirvInstructionTreeBuilder treeBuilder);