Lines Matching refs:ctx
52 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve);
53 info.ctx->bind_vertex_elements_state(info.ctx, handle);
59 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx,
65 info.ctx->set_vertex_buffers(info.ctx, 0, 1, 0, false, &vbuf);
82 handle = graw_parse_vertex_shader(info.ctx, text);
83 info.ctx->bind_vs_state(info.ctx, handle);
97 handle = graw_parse_fragment_shader(info.ctx, text);
98 info.ctx->bind_fs_state(info.ctx, handle);
106 info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0);
107 util_draw_arrays(info.ctx, PIPE_PRIM_TRIANGLES, 0, 3);
108 info.ctx->flush(info.ctx, NULL, 0);
110 graw_save_surface_to_file(info.ctx, info.color_surf[0], NULL);
133 handle = info.ctx->create_rasterizer_state(info.ctx, &rasterizer);
134 info.ctx->bind_rasterizer_state(info.ctx, handle);