Lines Matching refs:info
10 static struct graw_info info;
69 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve);
70 info.ctx->bind_vertex_elements_state(info.ctx, handle);
75 vbuf.buffer = pipe_buffer_create_with_data(info.ctx,
81 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf);
97 handle = graw_parse_vertex_shader(info.ctx, text);
98 info.ctx->bind_vs_state(info.ctx, handle);
114 handle = graw_parse_fragment_shader(info.ctx, text);
115 info.ctx->bind_fs_state(info.ctx, handle);
128 info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, &clear_color, 0, 0);
130 info.ctx->set_fragment_sampler_views(info.ctx, 1, &linear_sv);
132 util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, 4);
134 info.ctx->set_fragment_sampler_views(info.ctx, 1, &srgb_sv);
136 util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, 4);
138 info.ctx->flush(info.ctx, NULL);
140 graw_util_flush_front(&info);
159 texture = graw_util_create_tex2d(&info, SIZE, SIZE,
164 sampler = graw_util_create_simple_sampler(&info,
167 info.ctx->bind_fragment_sampler_states(info.ctx, 1, &sampler);
180 linear_sv = info.ctx->create_sampler_view(info.ctx, texture, &sv_temp);
195 srgb_sv = info.ctx->create_sampler_view(info.ctx, texture, &sv_temp);
204 if (!graw_util_create_window(&info, WIDTH, HEIGHT, 1, FALSE))
207 graw_util_default_state(&info, FALSE);
209 graw_util_viewport(&info, 0, 0, WIDTH, HEIGHT, 30, 10000);