Loading...
Searching...
No Matches
HdxOitBufferAccessor Class Reference

Class for OIT render tasks to access the OIT buffers. More...

#include <oitBufferAccessor.h>

Public Member Functions

HDX_API HdxOitBufferAccessor (HdTaskContext *ctx)
 
HDX_API void RequestOitBuffers ()
 Called during Prepare to indicate that OIT buffers are needed.
 
HDX_API void AllocateOitBuffersIfNecessary (HdRenderIndex *renderIndex)
 Called during Prepare to allocate OIT bars if not yet in context.
 
HDX_API bool ResizeOitBuffersIfNecessary (HdRenderIndex *renderIndex, GfVec2i const &screenSize, GfVec2i *prevScreenSize)
 Called during Prepare (by OitResolveTask) to grow OIT bars to fit the current screen.
 
HDX_API void InitializeOitBuffersIfNecessary (Hgi *hgi)
 Called during Excecute before writing to OIT buffers.
 
HDX_API bool AddOitBufferBindings (const HdStRenderPassShaderSharedPtr &)
 Called during Execute to add necessary OIT buffer shader bindings.
 

Static Public Member Functions

static HDX_API bool IsOitEnabled ()
 
static HDX_API bool IsOitPackedDepthEnabled ()
 

Detailed Description

Class for OIT render tasks to access the OIT buffers.

Definition at line 32 of file oitBufferAccessor.h.

Member Function Documentation

◆ AddOitBufferBindings()

HDX_API bool AddOitBufferBindings ( const HdStRenderPassShaderSharedPtr & )

Called during Execute to add necessary OIT buffer shader bindings.

Returns false if the OIT buffers were not allocated.

◆ AllocateOitBuffersIfNecessary()

HDX_API void AllocateOitBuffersIfNecessary ( HdRenderIndex * renderIndex)

Called during Prepare to allocate OIT bars if not yet in context.

Bars are initially unsized; call ResizeOitBuffersIfNecessary to size them.

◆ InitializeOitBuffersIfNecessary()

HDX_API void InitializeOitBuffersIfNecessary ( Hgi * hgi)

Called during Excecute before writing to OIT buffers.

◆ RequestOitBuffers()

HDX_API void RequestOitBuffers ( )

Called during Prepare to indicate that OIT buffers are needed.

◆ ResizeOitBuffersIfNecessary()

HDX_API bool ResizeOitBuffersIfNecessary ( HdRenderIndex * renderIndex,
GfVec2i const & screenSize,
GfVec2i * prevScreenSize )

Called during Prepare (by OitResolveTask) to grow OIT bars to fit the current screen.

prevScreenSize is updated in-place and must be persisted by the caller across frames. Returns false if "screenSize" is invalid.


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