Path: blob/21.2-virgl/src/gallium/auxiliary/util/u_draw_quad.h
4561 views
/**************************************************************************1*2* Copyright 2008 VMware, Inc.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sub license, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* The above copyright notice and this permission notice (including the14* next paragraph) shall be included in all copies or substantial portions15* of the Software.16*17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS18* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF19* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.20* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR21* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,22* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE23* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.24*25**************************************************************************/2627#ifndef U_DRAWQUAD_H28#define U_DRAWQUAD_H293031#include "pipe/p_compiler.h"32#include "pipe/p_context.h"3334#include "util/u_draw.h"3536#ifdef __cplusplus37extern "C" {38#endif3940struct pipe_resource;41struct cso_context;4243extern void44util_draw_vertex_buffer(struct pipe_context *pipe, struct cso_context *cso,45struct pipe_resource *vbuf, uint vbuf_slot,46uint offset, uint prim_type, uint num_attribs,47uint num_verts);4849void50util_draw_user_vertex_buffer(struct cso_context *cso, void *buffer,51uint prim_type, uint num_verts, uint num_attribs);5253#ifdef __cplusplus54}55#endif565758#endif596061