Searched refs:union_field (Results 1 – 3 of 3) sorted by relevance
149 def UnionFieldToDict(union_field): argument150 assert isinstance(union_field, ast.UnionField)151 data = {'name': union_field.name,152 'kind': _MapKind(union_field.typename)}154 union_field.ordinal.value155 if union_field.ordinal else None)157 _AttributeListToDict(union_field.attribute_list))
28 def __init__(self, c_type, union_field, glsl_type): argument30 self.union_field = union_field397 src0 = "op[0]->value.{0}[{1}]".format(types[0].union_field, indices[0])398 …src1 = "op[1]->value.{0}[{1}]".format(types[1].union_field, indices[1]) if len(types) >= 2 else "E…399 …src2 = "op[2]->value.{0}[{1}]".format(types[2].union_field, indices[2]) if len(types) >= 3 else "E…400 src3 = "op[3]->value.{0}[c]".format(types[3].union_field) if len(types) >= 4 else "ERROR"402 …expr = self.c_expression[types[0].union_field] if types[0].union_field in self.c_expression else s…
1424 const FieldDef *union_field) { in GenUnpackFieldStatement() argument1450 assert(union_field->value.type.base_type == BASE_TYPE_UNION); in GenUnpackFieldStatement()1453 code += "_o->" + union_field->name + ".type = _e;"; in GenUnpackFieldStatement()