8#ifndef skgpu_graphite_Buffer_DEFINED
9#define skgpu_graphite_Buffer_DEFINED
19 size_t size()
const {
return fSize; }
40 bool commandBufferRefsAsUsageRefs =
false)
45 commandBufferRefsAsUsageRefs)
@ kYes
Do pre-clip the geometry before applying the (perspective) matrix.
virtual void onAsyncMap(GpuFinishedProc, GpuFinishedContext)
virtual bool isUnmappable() const
Buffer(const SharedContext *sharedContext, size_t size, bool commandBufferRefsAsUsageRefs=false)
const char * getResourceType() const override
void asyncMap(GpuFinishedProc=nullptr, GpuFinishedContext=nullptr)
const SharedContext * sharedContext() const
void * GpuFinishedContext
void(*)(GpuFinishedContext finishedContext, CallbackResult) GpuFinishedProc