Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
skgpu::graphite::GraphicsPipelineDesc Class Reference

#include <GraphicsPipelineDesc.h>

Public Member Functions

 GraphicsPipelineDesc ()
 
 GraphicsPipelineDesc (const RenderStep *renderStep, UniquePaintParamsID paintID)
 
bool operator== (const GraphicsPipelineDesc &that) const
 
bool operator!= (const GraphicsPipelineDesc &other) const
 
uint32_t renderStepID () const
 
UniquePaintParamsID paintParamsID () const
 

Detailed Description

GraphicsPipelineDesc represents the state needed to create a backend specific GraphicsPipeline, minus the target-specific properties that can be inferred from the DrawPass and RenderPassTask.

Definition at line 20 of file GraphicsPipelineDesc.h.

Constructor & Destructor Documentation

◆ GraphicsPipelineDesc() [1/2]

skgpu::graphite::GraphicsPipelineDesc::GraphicsPipelineDesc ( )
inline

Definition at line 22 of file GraphicsPipelineDesc.h.

22: fRenderStepID(0), fPaintID(UniquePaintParamsID::InvalidID()) {}
static UniquePaintParamsID InvalidID()

◆ GraphicsPipelineDesc() [2/2]

skgpu::graphite::GraphicsPipelineDesc::GraphicsPipelineDesc ( const RenderStep renderStep,
UniquePaintParamsID  paintID 
)
inline

Definition at line 23 of file GraphicsPipelineDesc.h.

24 : fRenderStepID(renderStep->uniqueID())
25 , fPaintID(paintID) {}

Member Function Documentation

◆ operator!=()

bool skgpu::graphite::GraphicsPipelineDesc::operator!= ( const GraphicsPipelineDesc other) const
inline

Definition at line 31 of file GraphicsPipelineDesc.h.

31 {
32 return !(*this == other);
33 }

◆ operator==()

bool skgpu::graphite::GraphicsPipelineDesc::operator== ( const GraphicsPipelineDesc that) const
inline

Definition at line 27 of file GraphicsPipelineDesc.h.

27 {
28 return fRenderStepID == that.fRenderStepID && fPaintID == that.fPaintID;
29 }

◆ paintParamsID()

UniquePaintParamsID skgpu::graphite::GraphicsPipelineDesc::paintParamsID ( ) const
inline

Definition at line 39 of file GraphicsPipelineDesc.h.

39{ return fPaintID; }

◆ renderStepID()

uint32_t skgpu::graphite::GraphicsPipelineDesc::renderStepID ( ) const
inline

Definition at line 37 of file GraphicsPipelineDesc.h.

37{ return fRenderStepID; }

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