Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
skgpu::VertexWriter::TriFan< 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::TriFan< T >

Definition at line 226 of file BufferWriter.h.

Member Function Documentation

◆ writeVertex()

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

Definition at line 227 of file BufferWriter.h.

227 {
228 switch (cornerIdx) {
229 case 0: w << l << t; return;
230 case 1: w << l << b; return;
231 case 2: w << r << b; return;
232 case 3: w << r << t; return;
233 }
235 }
#define SkUNREACHABLE
Definition: SkAssert.h:135
SkScalar w

Member Data Documentation

◆ b

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

Definition at line 236 of file BufferWriter.h.

◆ l

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

Definition at line 236 of file BufferWriter.h.

◆ r

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

Definition at line 236 of file BufferWriter.h.

◆ t

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

Definition at line 236 of file BufferWriter.h.


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