Lines Matching refs:ureg

76    struct ureg_program *ureg;
79 ureg = ureg_create( TGSI_PROCESSOR_VERTEX );
80 if (ureg == NULL)
87 src = ureg_DECL_vs_input( ureg, i );
89 dst = ureg_DECL_output( ureg,
93 ureg_MOV( ureg, dst, src );
96 ureg_END( ureg );
98 return ureg_create_shader_with_so_and_destroy( ureg, pipe, so );
119 struct ureg_program *ureg;
127 ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT );
128 if (ureg == NULL)
131 sampler = ureg_DECL_sampler( ureg, 0 );
133 tex = ureg_DECL_fs_input( ureg,
137 out = ureg_DECL_output( ureg,
142 struct ureg_src imm = ureg_imm4f( ureg, 0, 0, 0, 1 );
144 ureg_MOV( ureg, out, imm );
147 ureg_TEX( ureg,
150 ureg_END( ureg );
152 return ureg_create_shader_and_destroy( ureg, pipe );
181 struct ureg_program *ureg;
187 ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT );
188 if (ureg == NULL)
191 sampler = ureg_DECL_sampler( ureg, 0 );
193 tex = ureg_DECL_fs_input( ureg,
197 out = ureg_DECL_output( ureg,
201 depth = ureg_DECL_output( ureg,
205 imm = ureg_imm4f( ureg, 0, 0, 0, 1 );
207 ureg_MOV( ureg, out, imm );
209 ureg_TEX( ureg,
212 ureg_END( ureg );
214 return ureg_create_shader_and_destroy( ureg, pipe );
227 struct ureg_program *ureg;
233 ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT );
234 if (ureg == NULL)
237 depth_sampler = ureg_DECL_sampler( ureg, 0 );
238 stencil_sampler = ureg_DECL_sampler( ureg, 1 );
240 tex = ureg_DECL_fs_input( ureg,
244 out = ureg_DECL_output( ureg,
248 depth = ureg_DECL_output( ureg,
252 stencil = ureg_DECL_output( ureg,
256 imm = ureg_imm4f( ureg, 0, 0, 0, 1 );
258 ureg_MOV( ureg, out, imm );
260 ureg_TEX( ureg,
263 ureg_TEX( ureg,
266 ureg_END( ureg );
268 return ureg_create_shader_and_destroy( ureg, pipe );
281 struct ureg_program *ureg;
287 ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT );
288 if (ureg == NULL)
291 stencil_sampler = ureg_DECL_sampler( ureg, 0 );
293 tex = ureg_DECL_fs_input( ureg,
297 out = ureg_DECL_output( ureg,
301 stencil = ureg_DECL_output( ureg,
305 imm = ureg_imm4f( ureg, 0, 0, 0, 1 );
307 ureg_MOV( ureg, out, imm );
309 ureg_TEX( ureg,
312 ureg_END( ureg );
314 return ureg_create_shader_and_destroy( ureg, pipe );
337 struct ureg_program *ureg;
344 ureg = ureg_create( TGSI_PROCESSOR_FRAGMENT );
345 if (ureg == NULL)
348 src = ureg_DECL_fs_input( ureg, input_semantic, 0,
352 dst[i] = ureg_DECL_output( ureg, TGSI_SEMANTIC_COLOR, i );
355 ureg_MOV( ureg, dst[i], src );
357 ureg_END( ureg );
359 return ureg_create_shader_and_destroy( ureg, pipe );