All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdxPrmanFramebuffer Class Reference

A simple framebuffer used to receive display-driver output from PRMan. More...

Public Types

typedef std::vector< HdPrmanAov > HdPrmanAovList
 
typedef std::vector
< HdPrmanAov >::iterator 
HdPrmanAovIt
 
typedef std::vector< HdPrmanAov > HdPrmanAovList
 
typedef std::vector
< HdPrmanAov >::iterator 
HdPrmanAovIt
 

Public Member Functions

void Resize (int width, int height)
 Resize the buffer. More...
 
void Clear ()
 
void AddAov (TfToken aovName, HdFormat dataType, VtValue clearValue)
 
void Resize (int width, int height)
 Resize the buffer. More...
 
void Clear ()
 
void AddAov (TfToken aovName, HdFormat dataType, VtValue clearValue)
 

Static Public Member Functions

static HdxPrmanFramebufferGetByID (int32_t id)
 Find a buffer instance with the given ID. More...
 
static void Register (RixContext *)
 
static HdxPrmanFramebufferGetByID (int32_t id)
 Find a buffer instance with the given ID. More...
 
static void Register (RixContext *)
 

Public Attributes

std::mutex mutex
 
HdPrmanAovList aovs
 
int w
 
int h
 
int32_t id
 
GfMatrix4d proj
 
bool pendingClear
 
riley::DisplayId dspyId
 
riley::RenderTargetId rtId
 

Detailed Description

A simple framebuffer used to receive display-driver output from PRMan.

This lives in a separate small library so it can be accessible to both the hdPrman hydra plgin at the d_hydra display driver plugin, without requiring either to know about the other.

Definition at line 45 of file framebuffer.h.

Member Function Documentation

static HdxPrmanFramebuffer* GetByID ( int32_t  id)
static

Find a buffer instance with the given ID.

The expectation is that the buffer will exist, so this raises a runtime error if the ID is not found.

static HdxPrmanFramebuffer* GetByID ( int32_t  id)
static

Find a buffer instance with the given ID.

The expectation is that the buffer will exist, so this raises a runtime error if the ID is not found.

void Resize ( int  width,
int  height 
)

Resize the buffer.

void Resize ( int  width,
int  height 
)

Resize the buffer.


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