Skia
2DGraphicsLibrary
|
Used to represent a texel buffer that will be read in a GrProcessor. More...
#include <GrBufferAccess.h>
Public Member Functions | |
void | reset (GrPixelConfig texelConfig, GrBuffer *buffer, GrShaderFlags visibility=kFragment_GrShaderFlag) |
Must be initialized before adding to a GrProcessor's buffer access list. | |
bool | operator== (const GrBufferAccess &that) const |
bool | operator!= (const GrBufferAccess &that) const |
GrPixelConfig | texelConfig () const |
GrBuffer * | buffer () const |
GrShaderFlags | visibility () const |
const GrGpuResourceRef * | getProgramBuffer () const |
For internal use by GrProcessor. | |
Private Types | |
typedef SkNoncopyable | INHERITED |
Private Attributes | |
GrPixelConfig | fTexelConfig |
GrTGpuResourceRef< GrBuffer > | fBuffer |
GrShaderFlags | fVisibility |
Used to represent a texel buffer that will be read in a GrProcessor.
It holds a GrBuffer along with an associated offset and texel config.