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