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

#include <ResourceTypes.h>

Inheritance diagram for skgpu::graphite::BindBufferInfo:
skgpu::graphite::BindUniformBufferInfo

Public Member Functions

 operator bool () const
 
bool operator== (const BindBufferInfo &o) const
 
bool operator!= (const BindBufferInfo &o) const
 

Public Attributes

const BufferfBuffer = nullptr
 
size_t fOffset = 0
 

Detailed Description

Definition at line 160 of file ResourceTypes.h.

Member Function Documentation

◆ operator bool()

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

Definition at line 164 of file ResourceTypes.h.

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

◆ operator!=()

bool skgpu::graphite::BindBufferInfo::operator!= ( const BindBufferInfo o) const
inline

Definition at line 169 of file ResourceTypes.h.

169{ return !(*this == o); }

◆ operator==()

bool skgpu::graphite::BindBufferInfo::operator== ( const BindBufferInfo o) const
inline

Definition at line 166 of file ResourceTypes.h.

166 {
167 return fBuffer == o.fBuffer && (!fBuffer || fOffset == o.fOffset);
168 }

Member Data Documentation

◆ fBuffer

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

Definition at line 161 of file ResourceTypes.h.

◆ fOffset

size_t skgpu::graphite::BindBufferInfo::fOffset = 0

Definition at line 162 of file ResourceTypes.h.


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