Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
GrBuffer Class Referenceabstract

#include <GrBuffer.h>

Inheritance diagram for GrBuffer:
GrCpuBuffer GrGpuBuffer GrD3DBuffer GrGLBuffer GrMockBuffer GrMtlBuffer GrVkBuffer

Public Member Functions

 GrBuffer (const GrBuffer &)=delete
 
GrBufferoperator= (const GrBuffer &)=delete
 
virtual ~GrBuffer ()=default
 
virtual void ref () const =0
 
virtual void unref () const =0
 
virtual size_t size () const =0
 
virtual bool isCpuBuffer () const =0
 

Protected Member Functions

 GrBuffer ()=default
 

Detailed Description

Base class for a GPU buffer object or a client side arrays.

Definition at line 14 of file GrBuffer.h.

Constructor & Destructor Documentation

◆ GrBuffer() [1/2]

GrBuffer::GrBuffer ( const GrBuffer )
delete

◆ ~GrBuffer()

virtual GrBuffer::~GrBuffer ( )
virtualdefault

◆ GrBuffer() [2/2]

GrBuffer::GrBuffer ( )
protecteddefault

Member Function Documentation

◆ isCpuBuffer()

virtual bool GrBuffer::isCpuBuffer ( ) const
pure virtual

Is this an instance of GrCpuBuffer? Otherwise, an instance of GrGpuBuffer.

Implemented in GrGpuBuffer, and GrCpuBuffer.

◆ operator=()

GrBuffer & GrBuffer::operator= ( const GrBuffer )
delete

◆ ref()

virtual void GrBuffer::ref ( ) const
pure virtual

Implemented in GrGpuBuffer, and GrCpuBuffer.

◆ size()

virtual size_t GrBuffer::size ( ) const
pure virtual

Size of the buffer in bytes.

Implemented in GrGpuBuffer, and GrCpuBuffer.

◆ unref()

virtual void GrBuffer::unref ( ) const
pure virtual

Implemented in GrGpuBuffer, and GrCpuBuffer.


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