Nebula
Loading...
Searching...
No Matches
CoreGraphics::BarrierScope Struct Reference

#include <barrier.h>

Public Member Functions

 ~BarrierScope ()
 Make sure we have cleared the barrier scope before destroying the object.
 
void Init (const char *name, CmdBufferId cmdBuf)
 Initiate.
 
void AddTexture (ImageBits bits, TextureId tex, CoreGraphics::PipelineStage fromStage, CoreGraphics::PipelineStage toStage)
 Add texture barrier.
 
void AddBuffer (BufferId buf, CoreGraphics::PipelineStage fromStage, CoreGraphics::PipelineStage toStage)
 Add buffer barrier.
 
void Flush ()
 Flush all pending changes.
 

Public Attributes

const char * name
 
CmdBufferId cmdBuf
 
CoreGraphics::PipelineStage fromStage
 
CoreGraphics::PipelineStage toStage
 
Util::Array< TextureBarrierInfotextures
 
Util::Array< BufferBarrierInfobuffers
 

Constructor & Destructor Documentation

◆ ~BarrierScope()

CoreGraphics::BarrierScope::~BarrierScope ( )
inline

Make sure we have cleared the barrier scope before destroying the object.

Member Function Documentation

◆ AddBuffer()

void CoreGraphics::BarrierScope::AddBuffer ( BufferId buf,
CoreGraphics::PipelineStage fromStage,
CoreGraphics::PipelineStage toStage )
inline

Add buffer barrier.

◆ AddTexture()

void CoreGraphics::BarrierScope::AddTexture ( ImageBits bits,
TextureId tex,
CoreGraphics::PipelineStage fromStage,
CoreGraphics::PipelineStage toStage )
inline

Add texture barrier.

◆ Flush()

void CoreGraphics::BarrierScope::Flush ( )
inline

Flush all pending changes.

◆ Init()

void CoreGraphics::BarrierScope::Init ( const char * name,
CmdBufferId cmdBuf )
inline

Initiate.

Member Data Documentation

◆ buffers

Util::Array<BufferBarrierInfo> CoreGraphics::BarrierScope::buffers

◆ cmdBuf

CmdBufferId CoreGraphics::BarrierScope::cmdBuf

◆ fromStage

CoreGraphics::PipelineStage CoreGraphics::BarrierScope::fromStage

◆ name

const char* CoreGraphics::BarrierScope::name

◆ textures

Util::Array<TextureBarrierInfo> CoreGraphics::BarrierScope::textures

◆ toStage

CoreGraphics::PipelineStage CoreGraphics::BarrierScope::toStage

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