Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::VPLShaderManager::MaterialOrder Struct Reference

Order materials so that they can be drawn with the least number of GPU pipeline flushes. Draw transparent objects last. More...

#include <mitsuba/hw/vpl.h>

Public Member Functions

 MaterialOrder (const std::vector< Renderer::TransformedGPUGeometry > &geo)
 
bool operator() (size_t idx1, size_t idx2) const
 

Public Attributes

const std::vector
< Renderer::TransformedGPUGeometry > & 
geo
 

Detailed Description

Order materials so that they can be drawn with the least number of GPU pipeline flushes. Draw transparent objects last.

Constructor & Destructor Documentation

mitsuba::VPLShaderManager::MaterialOrder::MaterialOrder ( const std::vector< Renderer::TransformedGPUGeometry > &  geo)
inline

Member Function Documentation

bool mitsuba::VPLShaderManager::MaterialOrder::operator() ( size_t  idx1,
size_t  idx2 
) const
inline

Member Data Documentation

const std::vector<Renderer::TransformedGPUGeometry>& mitsuba::VPLShaderManager::MaterialOrder::geo

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