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 Member Functions

void Resize (int width, int height)
 Resize the buffer. More...
 
void Resize (int width, int height)
 Resize the buffer. More...
 

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
 
std::vector< float > color
 
std::vector< float > depth
 
std::vector< int32_t > primId
 
std::vector< int32_t > instanceId
 
std::vector< int32_t > elementId
 
int w
 
int h
 
int32_t id
 
GfMatrix4d proj
 
float clearColor [4]
 
float clearDepth
 
int32_t clearId
 
bool pendingClear
 

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 42 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: