Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GrDrawIndexedIndirectWriter Struct Reference

#include <GrDrawIndirectCommand.h>

Public Member Functions

 GrDrawIndexedIndirectWriter ()=default
 
 GrDrawIndexedIndirectWriter (void *data)
 
 GrDrawIndexedIndirectWriter (const GrDrawIndexedIndirectWriter &)=delete
 
 GrDrawIndexedIndirectWriter (GrDrawIndexedIndirectWriter &&that)
 
GrDrawIndexedIndirectWriteroperator= (const GrDrawIndexedIndirectWriter &)=delete
 
GrDrawIndexedIndirectWriteroperator= (GrDrawIndexedIndirectWriter &&that)
 
bool operator== (const GrDrawIndexedIndirectWriter &that)
 
 operator bool () const
 
GrDrawIndexedIndirectWriter makeOffset (int drawCount) const
 
void writeIndexed (uint32_t indexCount, uint32_t baseIndex, uint32_t instanceCount, uint32_t baseInstance, int32_t baseVertex)
 

Detailed Description

Definition at line 73 of file GrDrawIndirectCommand.h.

Constructor & Destructor Documentation

◆ GrDrawIndexedIndirectWriter() [1/4]

GrDrawIndexedIndirectWriter::GrDrawIndexedIndirectWriter ( )
default

◆ GrDrawIndexedIndirectWriter() [2/4]

GrDrawIndexedIndirectWriter::GrDrawIndexedIndirectWriter ( void *  data)
inline

Definition at line 76 of file GrDrawIndirectCommand.h.

◆ GrDrawIndexedIndirectWriter() [3/4]

GrDrawIndexedIndirectWriter::GrDrawIndexedIndirectWriter ( const GrDrawIndexedIndirectWriter )
delete

◆ GrDrawIndexedIndirectWriter() [4/4]

GrDrawIndexedIndirectWriter::GrDrawIndexedIndirectWriter ( GrDrawIndexedIndirectWriter &&  that)
inline

Definition at line 79 of file GrDrawIndirectCommand.h.

79{ *this = std::move(that); }

Member Function Documentation

◆ makeOffset()

GrDrawIndexedIndirectWriter GrDrawIndexedIndirectWriter::makeOffset ( int  drawCount) const
inline

Definition at line 92 of file GrDrawIndirectCommand.h.

92{ return {fData + drawCount}; }

◆ operator bool()

GrDrawIndexedIndirectWriter::operator bool ( ) const
inlineexplicit

Definition at line 90 of file GrDrawIndirectCommand.h.

90{ return fData != nullptr; }

◆ operator=() [1/2]

GrDrawIndexedIndirectWriter & GrDrawIndexedIndirectWriter::operator= ( const GrDrawIndexedIndirectWriter )
delete

◆ operator=() [2/2]

GrDrawIndexedIndirectWriter & GrDrawIndexedIndirectWriter::operator= ( GrDrawIndexedIndirectWriter &&  that)
inline

Definition at line 82 of file GrDrawIndirectCommand.h.

82 {
83 fData = that.fData;
84 that.fData = nullptr;
85 return *this;
86 }

◆ operator==()

bool GrDrawIndexedIndirectWriter::operator== ( const GrDrawIndexedIndirectWriter that)
inline

Definition at line 88 of file GrDrawIndirectCommand.h.

88{ return fData == that.fData; }

◆ writeIndexed()

void GrDrawIndexedIndirectWriter::writeIndexed ( uint32_t  indexCount,
uint32_t  baseIndex,
uint32_t  instanceCount,
uint32_t  baseInstance,
int32_t  baseVertex 
)
inline

Definition at line 94 of file GrDrawIndirectCommand.h.

95 {
96 *fData++ = {indexCount, instanceCount, baseIndex, baseVertex, baseInstance};
97 }

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