Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrGLSLShaderBuilder::ShaderBlock Class Reference

#include <GrGLSLShaderBuilder.h>

Public Member Functions

 ShaderBlock (GrGLSLShaderBuilder *builder)
 
 ~ShaderBlock ()
 

Detailed Description

Helper for begining and ending a block in the shader code.

Definition at line 170 of file GrGLSLShaderBuilder.h.

Constructor & Destructor Documentation

◆ ShaderBlock()

GrGLSLShaderBuilder::ShaderBlock::ShaderBlock ( GrGLSLShaderBuilder builder)
inline

Definition at line 172 of file GrGLSLShaderBuilder.h.

172 : fBuilder(builder) {
174 fBuilder->codeAppend("{");
175 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
void codeAppend(const char *str)

◆ ~ShaderBlock()

GrGLSLShaderBuilder::ShaderBlock::~ShaderBlock ( )
inline

Definition at line 177 of file GrGLSLShaderBuilder.h.

177 {
178 fBuilder->codeAppend("}");
179 }

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