ezEngine Release 26.9
Loading...
Searching...
No Matches
ezRenderPipeline Class Reference
Inheritance diagram for ezRenderPipeline:

Public Types

enum class  PipelineState { Uninitialized , RebuildError , Initialized , RenderGraphBuilt }
 
using RenderDataProcessor = ezDelegate< void(ezExtractedRenderData &)>
 

Public Member Functions

void AddPass (ezUniquePtr< ezRenderPipelinePass > &&pPass)
 
void RemovePass (ezRenderPipelinePass *pPass)
 
void GetPasses (ezDynamicArray< const ezRenderPipelinePass * > &ref_passes) const
 
void GetPasses (ezDynamicArray< ezRenderPipelinePass * > &ref_passes)
 
ezRenderPipelinePassGetPassByName (const ezStringView &sPassName)
 
ezHashedString GetViewName () const
 
bool Connect (ezRenderPipelinePass *pOutputNode, const char *szOutputPinName, ezRenderPipelinePass *pInputNode, const char *szInputPinName)
 
bool Connect (ezRenderPipelinePass *pOutputNode, ezHashedString sOutputPinName, ezRenderPipelinePass *pInputNode, ezHashedString sInputPinName)
 
bool Disconnect (ezRenderPipelinePass *pOutputNode, ezHashedString sOutputPinName, ezRenderPipelinePass *pInputNode, ezHashedString sInputPinName)
 
const ezRenderPipelinePassConnectionGetInputConnection (const ezRenderPipelinePass *pPass, ezHashedString sInputPinName) const
 
const ezRenderPipelinePassConnectionGetOutputConnection (const ezRenderPipelinePass *pPass, ezHashedString sOutputPinName) const
 
void AddExtractor (ezUniquePtr< ezExtractor > &&pExtractor)
 
void RemoveExtractor (ezExtractor *pExtractor)
 
void GetExtractors (ezDynamicArray< const ezExtractor * > &ref_extractors) const
 
void GetExtractors (ezDynamicArray< ezExtractor * > &ref_extractors)
 
ezExtractorGetExtractorByName (const ezStringView &sExtractorName)
 
template<typename T >
EZ_ALWAYS_INLINE T * GetFrameDataProvider () const
 
const ezExtractedRenderDataGetRenderData () const
 
ezRenderDataBatchList GetRenderDataBatchesWithCategory (ezRenderData::Category category) const
 
ezArrayPtr< const ezTextureDependencyGetTextureDependenciesWithCategory (ezRenderData::Category category) const
 Returns the texture barrier dependencies recorded during extraction for a specific category.
 
ezArrayPtr< const ezBufferDependencyGetBufferDependenciesWithCategory (ezRenderData::Category category) const
 Returns the buffer barrier dependencies recorded during extraction for a specific category.
 
void AddViewDependency (ezGALTextureHandle hTexture, ezBitflags< ezGALResourceState > requiredState, ezBitflags< ezGALShaderStageFlags > stage=ezGALShaderStageFlags::Auto)
 
void AddViewDependency (ezGALBufferHandle hBuffer, ezBitflags< ezGALResourceState > requiredState, ezBitflags< ezGALShaderStageFlags > stage=ezGALShaderStageFlags::Auto)
 
ezUInt32 AddRenderDataProcessor (RenderDataProcessor processor)
 
void CreateDgmlGraph (ezDGMLGraph &ref_graph)
 Creates a DGML graph of all passes and textures. Can be used to verify that no accidental temp textures are created due to poorly constructed pipelines or errors in code.
 
 EZ_DISALLOW_COPY_AND_ASSIGN (ezRenderPipeline)
 
- Public Member Functions inherited from ezRefCounted
virtual ~ezRefCounted ()=default
 Adds a virtual destructor.
 
- Public Member Functions inherited from ezRefCountingImpl
 ezRefCountingImpl ()=default
 Constructor.
 
 ezRefCountingImpl (const ezRefCountingImpl &rhs)
 
void operator= (const ezRefCountingImpl &rhs)
 
ezInt32 AddRef () const
 Increments the reference counter. Returns the new reference count.
 
ezInt32 ReleaseRef () const
 Decrements the reference counter. Returns the new reference count.
 
bool IsReferenced () const
 Returns true if the reference count is greater than 0, false otherwise.
 
ezInt32 GetRefCount () const
 Returns the current reference count.
 

Friends

class ezRenderWorld
 
class ezView
 

Member Function Documentation

◆ AddViewDependency() [1/2]

void ezRenderPipeline::AddViewDependency ( ezGALBufferHandle  hBuffer,
ezBitflags< ezGALResourceState requiredState,
ezBitflags< ezGALShaderStageFlags stage = ezGALShaderStageFlags::Auto 
)

Adds a buffer dependency to the current extraction frame's data. Must only be called during extraction.

◆ AddViewDependency() [2/2]

void ezRenderPipeline::AddViewDependency ( ezGALTextureHandle  hTexture,
ezBitflags< ezGALResourceState requiredState,
ezBitflags< ezGALShaderStageFlags stage = ezGALShaderStageFlags::Auto 
)

Adds a texture dependency to the current extraction frame's data. Must only be called during extraction.


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