Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 159 of file ResourceTypes.h.

Member Function Documentation

◆ operator bool()

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

Definition at line 163 of file ResourceTypes.h.

163{ 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 168 of file ResourceTypes.h.

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

◆ operator==()

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

Definition at line 165 of file ResourceTypes.h.

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

Member Data Documentation

◆ fBuffer

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

Definition at line 160 of file ResourceTypes.h.

◆ fOffset

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

Definition at line 161 of file ResourceTypes.h.


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