Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
skgpu::ShaderErrorHandler Class Reference

#include <ShaderErrorHandler.h>

Inheritance diagram for skgpu::ShaderErrorHandler:
CapturingShaderErrorHandler NanobenchShaderErrorHandler

Public Member Functions

virtual ~ShaderErrorHandler ()=default
 
virtual void compileError (const char *shader, const char *errors)
 
virtual void compileError (const char *shader, const char *errors, bool shaderWasCached)
 

Protected Member Functions

 ShaderErrorHandler ()=default
 
 ShaderErrorHandler (const ShaderErrorHandler &)=delete
 
ShaderErrorHandleroperator= (const ShaderErrorHandler &)=delete
 

Detailed Description

Abstract class to report errors when compiling shaders.

Definition at line 17 of file ShaderErrorHandler.h.

Constructor & Destructor Documentation

◆ ~ShaderErrorHandler()

virtual skgpu::ShaderErrorHandler::~ShaderErrorHandler ( )
virtualdefault

◆ ShaderErrorHandler() [1/2]

skgpu::ShaderErrorHandler::ShaderErrorHandler ( )
protecteddefault

◆ ShaderErrorHandler() [2/2]

skgpu::ShaderErrorHandler::ShaderErrorHandler ( const ShaderErrorHandler )
protecteddelete

Member Function Documentation

◆ compileError() [1/2]

virtual void skgpu::ShaderErrorHandler::compileError ( const char *  shader,
const char *  errors 
)
inlinevirtual

compileError(shader, errors) is kept for backward compatibility with older clients.

Reimplemented in CapturingShaderErrorHandler.

Definition at line 24 of file ShaderErrorHandler.h.

25 {}

◆ compileError() [2/2]

virtual void skgpu::ShaderErrorHandler::compileError ( const char *  shader,
const char *  errors,
bool  shaderWasCached 
)
inlinevirtual

Definition at line 26 of file ShaderErrorHandler.h.

28 {
29 // Default implementation. Ignore shaderWasCached.
30 this->compileError(shader, errors);
31 }
virtual void compileError(const char *shader, const char *errors)

◆ operator=()

ShaderErrorHandler & skgpu::ShaderErrorHandler::operator= ( const ShaderErrorHandler )
protecteddelete

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