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);
76 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx,
82 info.ctx->set_vertex_buffers(info.ctx, 0, 1, 0, false, &vbuf);
98 handle = graw_parse_vertex_shader(info.ctx, text);
99 info.ctx->bind_vs_state(info.ctx, handle);
116 handle = graw_parse_fragment_shader(info.ctx, text);
117 info.ctx->bind_fs_state(info.ctx, handle);
130 info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0);
132 info.ctx->set_sampler_views(info.ctx, PIPE_SHADER_FRAGMENT, 0, 1, 0, false, &linear_sv);
134 util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, 4);
136 info.ctx->set_sampler_views(info.ctx, PIPE_SHADER_FRAGMENT, 0, 1, 0, false, &srgb_sv);
138 util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, 4);
140 info.ctx->flush(info.ctx, NULL, 0);
142 graw_util_flush_front(&info);
161 texture = graw_util_create_tex2d(&info, SIZE, SIZE,
166 sampler = graw_util_create_simple_sampler(&info,
169 info.ctx->bind_sampler_states(info.ctx, PIPE_SHADER_FRAGMENT,
183 linear_sv = info.ctx->create_sampler_view(info.ctx, texture, &sv_temp);
198 srgb_sv = info.ctx->create_sampler_view(info.ctx, texture, &sv_temp);
207 if (!graw_util_create_window(&info, WIDTH, HEIGHT, 1, FALSE))
210 graw_util_default_state(&info, FALSE);
212 graw_util_viewport(&info, 0, 0, WIDTH, HEIGHT, 30, 10000);