Lines Matching refs:ureg
145 struct ureg_program *ureg;
147 ureg = ureg_create(PIPE_SHADER_VERTEX);
148 if (!ureg)
151 struct ureg_src in0 = ureg_DECL_vs_input(ureg, 0);
152 struct ureg_src in1 = ureg_DECL_vs_input(ureg, 1);
154 struct ureg_dst out0 = ureg_DECL_output(ureg, texcoord_semantic(pctx), 0);
155 struct ureg_dst out1 = ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 1);
157 ureg_MOV(ureg, out0, in0);
158 ureg_MOV(ureg, out1, in1);
160 ureg_END(ureg);
162 return ureg_create_shader_and_destroy(ureg, pctx);
170 struct ureg_program *ureg;
174 ureg = ureg_create(PIPE_SHADER_FRAGMENT);
175 if (!ureg)
178 tc = ureg_DECL_fs_input(ureg, texcoord_semantic(pctx), 0,
181 ureg_TEX(ureg, ureg_DECL_output(ureg, TGSI_SEMANTIC_COLOR, i),
182 TGSI_TEXTURE_2D, tc, ureg_DECL_sampler(ureg, i));
184 ureg_TEX(ureg,
185 ureg_writemask(ureg_DECL_output(ureg, TGSI_SEMANTIC_POSITION, 0),
187 TGSI_TEXTURE_2D, tc, ureg_DECL_sampler(ureg, rts));
189 ureg_END(ureg);
191 return ureg_create_shader_and_destroy(ureg, pctx);