Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
skgpu::VertexWriter::TriStrip< T > Struct Template Reference

#include <BufferWriter.h>

Public Member Functions

void writeVertex (int cornerIdx, VertexWriter &w) const
 

Public Attributes

T l
 
T t
 
T r
 
T b
 

Detailed Description

template<typename T>
struct skgpu::VertexWriter::TriStrip< T >

Definition at line 204 of file BufferWriter.h.

Member Function Documentation

◆ writeVertex()

template<typename T >
void skgpu::VertexWriter::TriStrip< T >::writeVertex ( int  cornerIdx,
VertexWriter w 
) const
inline

Definition at line 205 of file BufferWriter.h.

205 {
206 switch (cornerIdx) {
207 case 0: w << l << t; return;
208 case 1: w << l << b; return;
209 case 2: w << r << t; return;
210 case 3: w << r << b; return;
211 }
213 }
#define SkUNREACHABLE
Definition: SkAssert.h:135
SkScalar w

Member Data Documentation

◆ b

template<typename T >
T skgpu::VertexWriter::TriStrip< T >::b

Definition at line 214 of file BufferWriter.h.

◆ l

template<typename T >
T skgpu::VertexWriter::TriStrip< T >::l

Definition at line 214 of file BufferWriter.h.

◆ r

template<typename T >
T skgpu::VertexWriter::TriStrip< T >::r

Definition at line 214 of file BufferWriter.h.

◆ t

template<typename T >
T skgpu::VertexWriter::TriStrip< T >::t

Definition at line 214 of file BufferWriter.h.


The documentation for this struct was generated from the following file: