Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::BoundBoxRenderer Class Reference

Bounding box renderer. More...

#include <BoundBoxRenderer.hpp>

Classes

struct  CreateInfo
 Bound box renderer creation info. More...
 
struct  RenderAttribs
 Render attributes. More...
 

Public Types

enum  OPTION_FLAGS : Uint32 { OPTION_FLAG_NONE = 0u , OPTION_FLAG_CONVERT_OUTPUT_TO_SRGB = 1u << 0u , OPTION_FLAG_COMPUTE_MOTION_VECTORS = 1u << 1u , OPTION_FLAG_USE_REVERSE_DEPTH = 1u << 2u }
 Option flags. More...
 

Public Member Functions

void Prepare (IDeviceContext *pContext, const RenderAttribs &Attribs)
 Prepares the renderer.
 
void Render (IDeviceContext *pContext)
 Renders the bounding box.
 

Detailed Description

Bounding box renderer.

Member Enumeration Documentation

◆ OPTION_FLAGS

Option flags.

Enumerator
OPTION_FLAG_NONE 

No options.

OPTION_FLAG_CONVERT_OUTPUT_TO_SRGB 

Manually convert shader output to sRGB color space.

OPTION_FLAG_COMPUTE_MOTION_VECTORS 

Compute motion vectors.

OPTION_FLAG_USE_REVERSE_DEPTH 

Use reverse depth (i.e. near plane is at 1.0, far plane is at 0.0).

Member Function Documentation

◆ Prepare()

void Diligent::BoundBoxRenderer::Prepare ( IDeviceContext * pContext,
const RenderAttribs & Attribs )

Prepares the renderer.

Parameters
[in]pContext- Device context.
[in]Attribs- Render attributes.