Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
skgpu::graphite::ClearBufferInfo Struct Reference

#include <ResourceTypes.h>

Public Member Functions

 operator bool () const
 

Public Attributes

const BufferfBuffer = nullptr
 
size_t fOffset = 0
 
size_t fSize = 0
 

Detailed Description

Represents a buffer region that should be cleared to 0. A ClearBuffersTask does not take an owning reference to the buffer it clears. A higher layer is responsible for managing the lifetime and usage refs of the buffer.

Definition at line 191 of file ResourceTypes.h.

Member Function Documentation

◆ operator bool()

skgpu::graphite::ClearBufferInfo::operator bool ( ) const
inline

Definition at line 196 of file ResourceTypes.h.

196{ return SkToBool(fBuffer); }
static constexpr bool SkToBool(const T &x)
Definition: SkTo.h:35

Member Data Documentation

◆ fBuffer

const Buffer* skgpu::graphite::ClearBufferInfo::fBuffer = nullptr

Definition at line 192 of file ResourceTypes.h.

◆ fOffset

size_t skgpu::graphite::ClearBufferInfo::fOffset = 0

Definition at line 193 of file ResourceTypes.h.

◆ fSize

size_t skgpu::graphite::ClearBufferInfo::fSize = 0

Definition at line 194 of file ResourceTypes.h.


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