/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_prim_vbuf.c | 67 void *vertex_buffer; member 96 align_free(cvbr->vertex_buffer); in sp_vbuf_allocate_vertices() 97 cvbr->vertex_buffer = align_malloc(size, 16); in sp_vbuf_allocate_vertices() 104 return cvbr->vertex_buffer != NULL; in sp_vbuf_allocate_vertices() 119 return cvbr->vertex_buffer; in sp_vbuf_map_vertices() 148 static inline cptrf4 get_vert( const void *vertex_buffer, in get_vert() argument 152 return (cptrf4)((char *)vertex_buffer + index * stride); in get_vert() 165 const void *vertex_buffer = cvbr->vertex_buffer; in sp_vbuf_draw_elements() local 174 get_vert(vertex_buffer, indices[i-0], stride) ); in sp_vbuf_draw_elements() 181 get_vert(vertex_buffer, indices[i-1], stride), in sp_vbuf_draw_elements() [all …]
|
D | sp_draw_arrays.c | 97 const void *buf = sp->vertex_buffer[i].is_user_buffer ? in softpipe_draw_vbo() 98 sp->vertex_buffer[i].buffer.user : NULL; in softpipe_draw_vbo() 101 if (!sp->vertex_buffer[i].buffer.resource) { in softpipe_draw_vbo() 104 buf = softpipe_resource_data(sp->vertex_buffer[i].buffer.resource); in softpipe_draw_vbo() 105 size = sp->vertex_buffer[i].buffer.resource->width0; in softpipe_draw_vbo()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_setup_vbuf.c | 89 align_free(setup->vertex_buffer); in lp_setup_allocate_vertices() 90 setup->vertex_buffer = align_malloc(size, 16); in lp_setup_allocate_vertices() 97 return setup->vertex_buffer != NULL; in lp_setup_allocate_vertices() 110 return setup->vertex_buffer; in lp_setup_map_vertices() 138 static inline const_float4_ptr get_vert( const void *vertex_buffer, in get_vert() argument 142 return (const_float4_ptr)((char *)vertex_buffer + index * stride); in get_vert() 169 const void *vertex_buffer = setup->vertex_buffer; in lp_setup_draw_elements() local 185 get_vert(vertex_buffer, indices[i-0], stride) ); in lp_setup_draw_elements() 192 get_vert(vertex_buffer, indices[i-1], stride), in lp_setup_draw_elements() 193 get_vert(vertex_buffer, indices[i-0], stride) ); in lp_setup_draw_elements() [all …]
|
D | lp_draw_arrays.c | 83 const void *buf = lp->vertex_buffer[i].is_user_buffer ? in llvmpipe_draw_vbo() 84 lp->vertex_buffer[i].buffer.user : NULL; in llvmpipe_draw_vbo() 87 if (!lp->vertex_buffer[i].buffer.resource) { in llvmpipe_draw_vbo() 90 buf = llvmpipe_resource_data(lp->vertex_buffer[i].buffer.resource); in llvmpipe_draw_vbo() 91 size = lp->vertex_buffer[i].buffer.resource->width0; in llvmpipe_draw_vbo()
|
/third_party/gstreamer/gstplugins_bad/sys/d3d11/ |
D | gstd3d11shader.cpp | 241 ID3D11Buffer *vertex_buffer; member 257 ID3D11Buffer * vertex_buffer, guint vertex_stride, in gst_d3d11_quad_new() argument 267 g_return_val_if_fail (vertex_buffer != NULL, NULL); in gst_d3d11_quad_new() 278 quad->vertex_buffer = vertex_buffer; in gst_d3d11_quad_new() 287 vertex_buffer->AddRef (); in gst_d3d11_quad_new() 318 GST_D3D11_CLEAR_COM (quad->vertex_buffer); in gst_d3d11_quad_free() 369 context->IASetVertexBuffers (0, 1, &quad->vertex_buffer, &quad->vertex_stride, in gst_d3d11_draw_quad_unlocked()
|
D | gstd3d11overlaycompositor.cpp | 136 ComPtr<ID3D11Buffer> vertex_buffer; in gst_d3d11_composition_overlay_new() local 215 hr = device_handle->CreateBuffer (&buffer_desc, NULL, &vertex_buffer); in gst_d3d11_composition_overlay_new() 222 hr = context_handle->Map (vertex_buffer.Get (), in gst_d3d11_composition_overlay_new() 277 context_handle->Unmap (vertex_buffer.Get (), 0); in gst_d3d11_composition_overlay_new() 286 vertex_buffer.Get (), sizeof (VertexData), in gst_d3d11_composition_overlay_new()
|
D | gstd3d11converter.cpp | 441 ID3D11Buffer *vertex_buffer; member 1484 ComPtr<ID3D11Buffer> vertex_buffer; in gst_d3d11_color_convert_setup_shader() local 1665 hr = device_handle->CreateBuffer (&buffer_desc, NULL, &vertex_buffer); in gst_d3d11_color_convert_setup_shader() 1683 hr = context_handle->Map (vertex_buffer.Get (), 0, D3D11_MAP_WRITE_DISCARD, 0, in gst_d3d11_color_convert_setup_shader() 1697 context_handle->Unmap (vertex_buffer.Get (), 0); in gst_d3d11_color_convert_setup_shader() 1741 context_handle->Unmap (vertex_buffer.Get (), 0); in gst_d3d11_color_convert_setup_shader() 1748 vertex_buffer.Get (), sizeof (VertexData), in gst_d3d11_color_convert_setup_shader() 1755 vertex_buffer.Get (), sizeof (VertexData), in gst_d3d11_color_convert_setup_shader() 1763 self->vertex_buffer = vertex_buffer.Detach (); in gst_d3d11_color_convert_setup_shader() 1961 GST_D3D11_CLEAR_COM (converter->vertex_buffer); in gst_d3d11_converter_free() [all …]
|
/third_party/gstreamer/gstplugins_base/ext/gl/ |
D | gstglfiltercube.c | 292 if (cube_filter->vertex_buffer) { in gst_gl_filter_cube_gl_stop() 293 gl->DeleteBuffers (1, &cube_filter->vertex_buffer); in gst_gl_filter_cube_gl_stop() 294 cube_filter->vertex_buffer = 0; in gst_gl_filter_cube_gl_stop() 405 gl->BindBuffer (GL_ARRAY_BUFFER, cube_filter->vertex_buffer); in _bind_buffer() 470 if (!cube_filter->vertex_buffer) { in _callback() 476 gl->GenBuffers (1, &cube_filter->vertex_buffer); in _callback() 477 gl->BindBuffer (GL_ARRAY_BUFFER, cube_filter->vertex_buffer); in _callback()
|
D | gstglmosaic.c | 256 gl->BindBuffer (GL_ARRAY_BUFFER, mosaic->vertex_buffer); in _bind_buffer() 328 if (!mosaic->vertex_buffer) { in gst_gl_mosaic_callback() 383 gl->GenBuffers (1, &mosaic->vertex_buffer); in gst_gl_mosaic_callback() 384 gl->BindBuffer (GL_ARRAY_BUFFER, mosaic->vertex_buffer); in gst_gl_mosaic_callback()
|
D | gstglvideomixer.c | 569 GLuint vertex_buffer; member 890 if (pad->vertex_buffer) { in gst_gl_video_mixer_release_pad() 893 _del_buffer, &pad->vertex_buffer); in gst_gl_video_mixer_release_pad() 894 pad->vertex_buffer = 0; in gst_gl_video_mixer_release_pad() 1165 if (pad->vertex_buffer) { in _reset_pad_gl() 1166 gl->DeleteBuffers (1, &pad->vertex_buffer); in _reset_pad_gl() 1167 pad->vertex_buffer = 0; in _reset_pad_gl() 1571 || pad->geometry_change || !pad->vertex_buffer) { in gst_gl_video_mixer_callback() 1593 if (!pad->vertex_buffer) in gst_gl_video_mixer_callback() 1594 gl->GenBuffers (1, &pad->vertex_buffer); in gst_gl_video_mixer_callback() [all …]
|
D | gstgltransformation.c | 778 if (transformation->vertex_buffer) { in gst_gl_transformation_gl_stop() 779 gl->DeleteBuffers (1, &transformation->vertex_buffer); in gst_gl_transformation_gl_stop() 780 transformation->vertex_buffer = 0; in gst_gl_transformation_gl_stop() 916 gl->BindBuffer (GL_ARRAY_BUFFER, transformation->vertex_buffer); in _upload_vertices() 929 gl->BindBuffer (GL_ARRAY_BUFFER, transformation->vertex_buffer); in _bind_buffer() 981 if (!transformation->vertex_buffer) { in gst_gl_transformation_callback() 995 gl->GenBuffers (1, &transformation->vertex_buffer); in gst_gl_transformation_callback()
|
D | caopengllayersink.m | 813 gl->BindBuffer (GL_ARRAY_BUFFER, ca_sink->vertex_buffer); 864 if (!ca_sink->vertex_buffer) { 865 gl->GenBuffers (1, &ca_sink->vertex_buffer); 866 gl->BindBuffer (GL_ARRAY_BUFFER, ca_sink->vertex_buffer); 907 if (ca_sink->vertex_buffer) { 908 gl->DeleteBuffers (1, &ca_sink->vertex_buffer); 909 ca_sink->vertex_buffer = 0;
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pt.c | 292 ptr += draw->pt.vertex_buffer[buf].buffer_offset; in draw_print_arrays() 293 ptr += draw->pt.vertex_buffer[buf].stride * ii; in draw_print_arrays() 437 struct pipe_vertex_buffer *vertex_buffer) in resolve_draw_info() argument 444 assert(vertex_buffer != NULL); in resolve_draw_info() 445 draw->count = vertex_buffer->stride == 0 ? 0 : in resolve_draw_info() 446 target->internal_offset / vertex_buffer->stride; in resolve_draw_info() 522 &resolved_draw, &(draw->pt.vertex_buffer[0])); in draw_vbo() 565 draw->pt.vertex_buffer[i].stride, in draw_vbo() 566 draw->pt.vertex_buffer[i].buffer_offset, in draw_vbo() 581 index_limit = util_draw_max_index(draw->pt.vertex_buffer, in draw_vbo()
|
D | draw_pt_fetch.c | 156 draw->pt.vertex_buffer[i].buffer_offset), in draw_pt_fetch_run() 157 draw->pt.vertex_buffer[i].stride, in draw_pt_fetch_run() 184 draw->pt.vertex_buffer[i].buffer_offset), in draw_pt_fetch_run_linear() 185 draw->pt.vertex_buffer[i].stride, in draw_pt_fetch_run_linear()
|
D | draw_pt_fetch_shade_emit.c | 117 if (draw->pt.vertex_buffer[i].stride == 0) in fse_prepare() 162 draw->pt.vertex_buffer[i].buffer_offset), in fse_prepare() 163 draw->pt.vertex_buffer[i].stride, in fse_prepare()
|
/third_party/vk-gl-cts/external/amber/src/src/vulkan/ |
D | graphics_pipeline.cc | 567 const VertexBuffer* vertex_buffer, in CreateVkGraphicsPipeline() argument 578 if (vertex_buffer != nullptr) { in CreateVkGraphicsPipeline() 579 vertex_bindings = vertex_buffer->GetVkVertexInputBinding(); in CreateVkGraphicsPipeline() 580 vertex_attribs = vertex_buffer->GetVkVertexInputAttr(); in CreateVkGraphicsPipeline() 758 VertexBuffer* vertex_buffer) { in SendVertexBufferDataIfNeeded() argument 759 if (!vertex_buffer || vertex_buffer->VertexDataSent()) in SendVertexBufferDataIfNeeded() 761 return vertex_buffer->SendVertexData(command_.get()); in SendVertexBufferDataIfNeeded() 881 VertexBuffer* vertex_buffer) { in Draw() argument 894 vertex_buffer, pipeline_layout, &pipeline); in Draw() 908 r = SendVertexBufferDataIfNeeded(vertex_buffer); in Draw() [all …]
|
D | graphics_pipeline.h | 61 Result Draw(const DrawArraysCommand* command, VertexBuffer* vertex_buffer); 76 const VertexBuffer* vertex_buffer, 80 Result SendVertexBufferDataIfNeeded(VertexBuffer* vertex_buffer);
|
D | engine_vulkan.cc | 211 if (!info.vertex_buffer) in CreatePipeline() 212 info.vertex_buffer = MakeUnique<VertexBuffer>(device_.get()); in CreatePipeline() 214 info.vertex_buffer->SetData(static_cast<uint8_t>(vtex_info.location), in CreatePipeline() 511 auto vertex_buffer = MakeUnique<VertexBuffer>(device_.get()); in DoDrawRect() local 512 vertex_buffer->SetData(0, buf.get(), InputRate::kVertex, buf->GetFormat(), 0, in DoDrawRect() 522 Result r = graphics->Draw(&draw, vertex_buffer.get()); in DoDrawRect() 599 auto vertex_buffer = MakeUnique<VertexBuffer>(device_.get()); in DoDrawGrid() local 600 vertex_buffer->SetData(0, buf.get(), InputRate::kVertex, buf->GetFormat(), 0, in DoDrawGrid() 609 Result r = graphics->Draw(&draw, vertex_buffer.get()); in DoDrawGrid() 622 info.vertex_buffer.get()); in DoDrawArrays()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_emit.c | 329 for (int x = 0; x < ctx->vertex_buffer.count; ++x) { in etna_emit_state() 330 …/*14600*/ EMIT_STATE_RELOC(NFE_VERTEX_STREAMS_BASE_ADDR(x), &ctx->vertex_buffer.cvb[x].FE_VERTEX_S… in etna_emit_state() 332 for (int x = 0; x < ctx->vertex_buffer.count; ++x) { in etna_emit_state() 333 if (ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_BASE_ADDR.bo) { in etna_emit_state() 334 …/*14640*/ EMIT_STATE(NFE_VERTEX_STREAMS_CONTROL(x), ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_CON… in etna_emit_state() 338 for (int x = 0; x < ctx->vertex_buffer.count; ++x) { in etna_emit_state() 339 …/*00680*/ EMIT_STATE_RELOC(FE_VERTEX_STREAMS_BASE_ADDR(x), &ctx->vertex_buffer.cvb[x].FE_VERTEX_ST… in etna_emit_state() 341 for (int x = 0; x < ctx->vertex_buffer.count; ++x) { in etna_emit_state() 342 if (ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_BASE_ADDR.bo) { in etna_emit_state() 343 …/*006A0*/ EMIT_STATE(FE_VERTEX_STREAMS_CONTROL(x), ctx->vertex_buffer.cvb[x].FE_VERTEX_STREAM_CONT… in etna_emit_state() [all …]
|
/third_party/flutter/glfw/examples/ |
D | simple.c | 78 GLuint vertex_buffer, vertex_shader, fragment_shader, program; in main() local 104 glGenBuffers(1, &vertex_buffer); in main() 105 glBindBuffer(GL_ARRAY_BUFFER, vertex_buffer); in main()
|
/third_party/gstreamer/gstplugins_bad/tests/examples/d3d11/ |
D | d3d11device.cpp | 327 ComPtr<ID3D11Buffer> vertex_buffer; in prepare_shader() local 328 hr = d3d11_device->CreateBuffer (&buffer_desc, nullptr, &vertex_buffer); in prepare_shader() 335 hr = context->Map (vertex_buffer.Get(), 0, D3D11_MAP_WRITE_DISCARD, 0, &map); in prepare_shader() 366 context->Unmap (vertex_buffer.Get(), 0); in prepare_shader() 398 *vertex = vertex_buffer.Detach(); in prepare_shader()
|
/third_party/gstreamer/gstplugins_good/ext/gtk/ |
D | gtkgstglwidget.c | 64 GLuint vertex_buffer; member 93 gl->BindBuffer (GL_ARRAY_BUFFER, priv->vertex_buffer); in gtk_gst_gl_widget_bind_buffer() 151 gl->GenBuffers (1, &priv->vertex_buffer); in gtk_gst_gl_widget_init_redisplay() 152 gl->BindBuffer (GL_ARRAY_BUFFER, priv->vertex_buffer); in gtk_gst_gl_widget_init_redisplay() 417 if (priv->vertex_buffer) { in _reset_gl() 418 gl->DeleteBuffers (1, &priv->vertex_buffer); in _reset_gl() 419 priv->vertex_buffer = 0; in _reset_gl()
|
/third_party/mesa3d/src/gallium/ |
D | README.portability | 73 static inline struct vertex_buffer *vertex_buffer(struct buffer *buf) 75 return (struct vertex_buffer *) buf;
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/ |
D | gstglfilter.c | 218 if (filter->vertex_buffer) { in gst_gl_filter_gl_stop() 219 gl->DeleteBuffers (1, &filter->vertex_buffer); in gst_gl_filter_gl_stop() 220 filter->vertex_buffer = 0; in gst_gl_filter_gl_stop() 1182 gl->BindBuffer (GL_ARRAY_BUFFER, filter->vertex_buffer); in _bind_buffer() 1229 if (!filter->vertex_buffer) { in gst_gl_filter_draw_fullscreen_quad() 1235 gl->GenBuffers (1, &filter->vertex_buffer); in gst_gl_filter_draw_fullscreen_quad() 1236 gl->BindBuffer (GL_ARRAY_BUFFER, filter->vertex_buffer); in gst_gl_filter_draw_fullscreen_quad()
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_vbuf.c | 165 struct pipe_vertex_buffer vertex_buffer[PIPE_MAX_ATTRIBS]; member 446 pipe_vertex_buffer_unreference(&mgr->vertex_buffer[i]); in u_vbuf_destroy() 483 vb = &mgr->vertex_buffer[i]; in u_vbuf_translate_buffers() 712 if (!mgr->vertex_buffer[vb_index].stride) { in u_vbuf_translate_begin() 1012 pipe_vertex_buffer_unreference(&mgr->vertex_buffer[dst_index]); in u_vbuf_set_vertex_buffers() 1024 struct pipe_vertex_buffer *orig_vb = &mgr->vertex_buffer[dst_index]; in u_vbuf_set_vertex_buffers() 1092 pipe_vertex_buffer_unreference(&mgr->vertex_buffer[dst_index]); in u_vbuf_set_vertex_buffers() 1176 struct pipe_vertex_buffer *vb = &mgr->vertex_buffer[index]; in u_vbuf_upload_buffers() 1185 const uint8_t *ptr = mgr->vertex_buffer[index].buffer.user; in u_vbuf_upload_buffers() 1208 struct pipe_vertex_buffer *vb = &mgr->vertex_buffer[index]; in u_vbuf_upload_buffers() [all …]
|