Home | History | Annotate | Download | only in gpu

Lines Matching full:vertex

113      * blend modes it is safe to fold the coverage into constant or per-vertex
126 * color specified by setColor or per-vertex colors will give the right
132 * Given the current draw state, vertex layout, and hw support, will HW AA
177 * Flags that indicate the layout of vertex data. Vertices always contain
179 * of 2D texture * coordinates, per-vertex colors, and per-vertex coverage.
251 /* Each vertex specificies an edge. Distance to the edge is used to
273 * caller's client has already provided vertex data in a format
281 * that the draw target make room for some amount of vertex and/or index
282 * data. The target provides ptrs to hold the vertex and/or index data.
288 * 3. Vertex and Index Buffers. This is most useful for geometry that will
303 * If a client does not already have a vertex buffer then this is the
304 * preferred way to allocate vertex data. It allows the subclass of
305 * GrDrawTarget to decide whether to put data in buffers, to group vertex
315 * @param vertices will point to reserved vertex space if vertexCount is
376 * Sets source of vertex data for the next draw. Array must contain
377 * the vertex data when this is called.
379 * @param array cpu array containing vertex data.
380 * @param size size of the vertex data.
397 * Sets source of vertex data for the next draw. Data does not have to be
400 * @param buffer vertex buffer containing vertex data. Must be
402 * @param vertexLayout layout of the vertex data in the buffer.
417 * Resets vertex source. Drawing from reset vertices is illegal. Set vertex
433 * Pushes and resets the vertex/index sources. Any reserved vertex / index
440 * Pops the vertex / index sources from the matching push.
445 * Draws indexed geometry using the current state and current vertex / index
449 * @param startVertex the vertex in the vertex array/buffer corresponding
464 * Draws non-indexed geometry using the current state and current vertex
468 * @param startVertex the vertex in the vertex array/buffer corresponding
478 * and vertex sources. After returning, the vertex and index sources may
631 // Helpers for picking apart vertex layouts
634 * Helper function to compute the size of a vertex from a vertex layout
635 * @return size of a single vertex.
654 * Helper function to compute the offset of texture coordinates in a vertex
655 * @return offset of texture coordinates in vertex layout or -1 if the
662 * Helper function to compute the offset of the color in a vertex
663 * @return offset of color in vertex layout or -1 if the
669 * Helper function to compute the offset of the coverage in a vertex
670 * @return offset of coverage in vertex layout or -1 if the
676 * Helper function to compute the offset of the edge pts in a vertex
677 * @return offset of edge in vertex layout or -1 if the
683 * Helper function to determine if vertex layout contains explicit texture
689 * @return true if vertex specifies texture coordinates for the index,
696 * Helper function to determine if vertex layout contains either explicit or
702 * @return true if vertex specifies texture coordinates for the stage,
708 * Helper function to compute the size of each vertex and the offsets of
715 * tex coord index in the vertex or -1 if
718 * color field in each vertex, or -1 if
719 * there aren't per-vertex colors. (optional)
721 * coverage field in each vertex, or -1 if
722 * there aren't per-vertex coeverages.
725 * edge eq field in each vertex, or -1 if
726 * there aren't per-vertex edge equations.
728 * @return size of a single vertex
737 * Helper function to compute the size of each vertex and the offsets of
745 * tex coord index in the vertex or -1 if
748 * color field in each vertex, or -1 if
749 * there aren't per-vertex colors.
752 * coverage field in each vertex, or -1 if
753 * there aren't per-vertex coeverages.
756 * edge eq field in each vertex, or -1 if
757 * there aren't per-vertex edge equations.
759 * @return size of a single vertex
768 * Accessing positions, texture coords, or colors, of a vertex within an
774 * Gets a pointer to a GrPoint of a vertex's position or texture
777 * @param vertexIndex the index of the vertex in the array
778 * @param vertexSize the size of each vertex in the array
779 * @param offset the offset in bytes of the vertex component.
780 * Defaults to zero (corresponding to vertex position)
781 * @return pointer to the vertex component as a GrPoint
801 * Gets a pointer to a GrColor inside a vertex within a vertex array.
803 * @param vertexIndex the index of the vertex in the array
804 * @param vertexSize the size of each vertex in the array
805 * @param offset the offset in bytes of the vertex color
806 * @return pointer to the vertex component as a GrColor
908 // given a vertex layout and a draw state, will a stage be used?
993 // subclasses must call this in their destructors to ensure all vertex