Lines Matching refs:ctx
51 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve);
52 info.ctx->bind_vertex_elements_state(info.ctx, handle);
58 vbuf.buffer.resource = pipe_buffer_create_with_data(info.ctx,
64 info.ctx->set_vertex_buffers(info.ctx, 0, 1, 0, false, &vbuf);
80 handle = graw_parse_vertex_shader(info.ctx, text);
81 info.ctx->bind_vs_state(info.ctx, handle);
96 handle = graw_parse_fragment_shader(info.ctx, text);
97 info.ctx->bind_fs_state(info.ctx, handle);
110 info.ctx->clear(info.ctx, PIPE_CLEAR_COLOR, NULL, &clear_color, 0, 0);
111 util_draw_arrays(info.ctx, PIPE_PRIM_QUADS, 0, 4);
112 info.ctx->flush(info.ctx, NULL, 0);
146 sv = info.ctx->create_sampler_view(info.ctx, texture, &sv_template);
150 info.ctx->set_sampler_views(info.ctx, PIPE_SHADER_FRAGMENT, 0, 1, 0, false, &sv);
156 info.ctx->bind_sampler_states(info.ctx, PIPE_SHADER_FRAGMENT,