1 #if !defined TGSI_PARSE_H
4 #if defined __cplusplus
8 struct tgsi_full_version
10 struct tgsi_version Version
;
13 struct tgsi_full_header
15 struct tgsi_header Header
;
16 struct tgsi_processor Processor
;
19 struct tgsi_full_dst_register
21 struct tgsi_dst_register DstRegister
;
22 struct tgsi_dst_register_ext_concode DstRegisterExtConcode
;
23 struct tgsi_dst_register_ext_modulate DstRegisterExtModulate
;
26 struct tgsi_full_src_register
28 struct tgsi_src_register SrcRegister
;
29 struct tgsi_src_register_ext_swz SrcRegisterExtSwz
;
30 struct tgsi_src_register_ext_mod SrcRegisterExtMod
;
31 struct tgsi_src_register SrcRegisterInd
;
32 struct tgsi_dimension SrcRegisterDim
;
33 struct tgsi_src_register SrcRegisterDimInd
;
36 struct tgsi_full_declaration
38 struct tgsi_declaration Declaration
;
41 struct tgsi_declaration_range DeclarationRange
;
42 struct tgsi_declaration_mask DeclarationMask
;
44 struct tgsi_declaration_interpolation Interpolation
;
45 struct tgsi_declaration_semantic Semantic
;
48 struct tgsi_full_immediate
50 struct tgsi_immediate Immediate
;
54 struct tgsi_immediate_float32
*ImmediateFloat32
;
58 #define TGSI_FULL_MAX_DST_REGISTERS 2
59 #define TGSI_FULL_MAX_SRC_REGISTERS 3
61 struct tgsi_full_instruction
63 struct tgsi_instruction Instruction
;
64 struct tgsi_instruction_ext_nv InstructionExtNv
;
65 struct tgsi_instruction_ext_label InstructionExtLabel
;
66 struct tgsi_instruction_ext_texture InstructionExtTexture
;
67 struct tgsi_full_dst_register FullDstRegisters
[TGSI_FULL_MAX_DST_REGISTERS
];
68 struct tgsi_full_src_register FullSrcRegisters
[TGSI_FULL_MAX_SRC_REGISTERS
];
73 struct tgsi_token Token
;
74 struct tgsi_full_declaration FullDeclaration
;
75 struct tgsi_full_immediate FullImmediate
;
76 struct tgsi_full_instruction FullInstruction
;
81 union tgsi_full_token
*full_token
);
85 union tgsi_full_token
*full_token
);
87 struct tgsi_parse_context
89 const struct tgsi_token
*Tokens
;
91 struct tgsi_full_version FullVersion
;
92 struct tgsi_full_header FullHeader
;
93 union tgsi_full_token FullToken
;
96 #define TGSI_PARSE_OK 0
97 #define TGSI_PARSE_ERROR 1
101 struct tgsi_parse_context
*ctx
,
102 const struct tgsi_token
*tokens
);
106 struct tgsi_parse_context
*ctx
);
109 tgsi_parse_end_of_tokens(
110 struct tgsi_parse_context
*ctx
);
114 struct tgsi_parse_context
*ctx
);
116 #if defined __cplusplus
120 #endif /* TGSI_PARSE_H */