Flutter Engine
The Flutter Engine
Macros | Functions
GrGLOpsRenderPass.cpp File Reference
#include "src/gpu/ganesh/gl/GrGLOpsRenderPass.h"
#include "src/gpu/ganesh/GrProgramInfo.h"
#include "src/gpu/ganesh/GrRenderTarget.h"
#include "src/gpu/ganesh/gl/GrGLProgram.h"

Go to the source code of this file.

Macros

#define GL_CALL(X)   GR_GL_CALL(fGpu->glInterface(), X)
 

Functions

static const void * buffer_offset_to_gl_address (const GrBuffer *drawIndirectBuffer, size_t offset)
 

Macro Definition Documentation

◆ GL_CALL

#define GL_CALL (   X)    GR_GL_CALL(fGpu->glInterface(), X)

Definition at line 19 of file GrGLOpsRenderPass.cpp.

Function Documentation

◆ buffer_offset_to_gl_address()

static const void * buffer_offset_to_gl_address ( const GrBuffer drawIndirectBuffer,
size_t  offset 
)
static

Definition at line 268 of file GrGLOpsRenderPass.cpp.

268 {
269 if (drawIndirectBuffer->isCpuBuffer()) {
270 return static_cast<const GrCpuBuffer*>(drawIndirectBuffer)->data() + offset;
271 } else {
272 return (offset) ? reinterpret_cast<const void*>(offset) : nullptr;
273 }
274}
virtual bool isCpuBuffer() const =0
SeparatedVector2 offset
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63