Blender V2.61 - r43446
Defines | Enumerations | Functions | Variables

osl_closures.h File Reference

#include <OSL/oslclosure.h>
#include <OSL/oslexec.h>
#include <OSL/genclosure.h>

Go to the source code of this file.

Defines

#define CLOSURE_PREPARE(name, classname)

Enumerations

enum  {
  OSL_CLOSURE_BSDF_DIFFUSE_ID, OSL_CLOSURE_BSDF_OREN_NAYAR_ID, OSL_CLOSURE_BSDF_TRANSLUCENT_ID, OSL_CLOSURE_BSDF_REFLECTION_ID,
  OSL_CLOSURE_BSDF_REFRACTION_ID, OSL_CLOSURE_BSDF_TRANSPARENT_ID, OSL_CLOSURE_BSDF_MICROFACET_GGX_ID, OSL_CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID,
  OSL_CLOSURE_BSDF_MICROFACET_BECKMANN_ID, OSL_CLOSURE_BSDF_MICROFACET_BECKMANN_REFRACTION_ID, OSL_CLOSURE_BSDF_WARD_ID, OSL_CLOSURE_BSDF_ASHIKHMIN_VELVET_ID,
  OSL_CLOSURE_BSDF_WESTIN_BACKSCATTER_ID, OSL_CLOSURE_BSDF_WESTIN_SHEEN_ID, OSL_CLOSURE_BSSRDF_CUBIC_ID, OSL_CLOSURE_EMISSION_ID,
  OSL_CLOSURE_DEBUG_ID, OSL_CLOSURE_BACKGROUND_ID, OSL_CLOSURE_HOLDOUT_ID, OSL_CLOSURE_SUBSURFACE_ID
}

Functions

void bsdf_diffuse_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_oren_nayar_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_translucent_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_reflection_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_refraction_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_transparent_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_microfacet_ggx_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_microfacet_ggx_refraction_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_microfacet_beckmann_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_microfacet_beckmann_refraction_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_ward_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_ashikhmin_velvet_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_westin_backscatter_prepare (OSL::RendererServices *, int id, void *data)
void bsdf_westin_sheen_prepare (OSL::RendererServices *, int id, void *data)
void closure_bssrdf_cubic_prepare (OSL::RendererServices *, int id, void *data)
void closure_emission_prepare (OSL::RendererServices *, int id, void *data)
void closure_debug_prepare (OSL::RendererServices *, int id, void *data)
void closure_background_prepare (OSL::RendererServices *, int id, void *data)
void closure_holdout_prepare (OSL::RendererServices *, int id, void *data)
void closure_subsurface_prepare (OSL::RendererServices *, int id, void *data)

Variables

OSL::ClosureParam bsdf_diffuse_params []
OSL::ClosureParam bsdf_oren_nayar_params []
OSL::ClosureParam bsdf_translucent_params []
OSL::ClosureParam bsdf_reflection_params []
OSL::ClosureParam bsdf_refraction_params []
OSL::ClosureParam bsdf_transparent_params []
OSL::ClosureParam bsdf_microfacet_ggx_params []
OSL::ClosureParam bsdf_microfacet_ggx_refraction_params []
OSL::ClosureParam bsdf_microfacet_beckmann_params []
OSL::ClosureParam bsdf_microfacet_beckmann_refraction_params []
OSL::ClosureParam bsdf_ward_params []
OSL::ClosureParam bsdf_ashikhmin_velvet_params []
OSL::ClosureParam bsdf_westin_backscatter_params []
OSL::ClosureParam bsdf_westin_sheen_params []
OSL::ClosureParam closure_bssrdf_cubic_params []
OSL::ClosureParam closure_emission_params []
OSL::ClosureParam closure_debug_params []
OSL::ClosureParam closure_background_params []
OSL::ClosureParam closure_holdout_params []
OSL::ClosureParam closure_subsurface_params []

Define Documentation

#define CLOSURE_PREPARE (   name,
  classname 
)
Value:
void name(RendererServices *, int id, void *data) \
{                                                 \
    memset(data, 0, sizeof(classname));           \
    new (data) classname();                       \
}

Definition at line 107 of file osl_closures.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
OSL_CLOSURE_BSDF_DIFFUSE_ID 
OSL_CLOSURE_BSDF_OREN_NAYAR_ID 
OSL_CLOSURE_BSDF_TRANSLUCENT_ID 
OSL_CLOSURE_BSDF_REFLECTION_ID 
OSL_CLOSURE_BSDF_REFRACTION_ID 
OSL_CLOSURE_BSDF_TRANSPARENT_ID 
OSL_CLOSURE_BSDF_MICROFACET_GGX_ID 
OSL_CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID 
OSL_CLOSURE_BSDF_MICROFACET_BECKMANN_ID 
OSL_CLOSURE_BSDF_MICROFACET_BECKMANN_REFRACTION_ID 
OSL_CLOSURE_BSDF_WARD_ID 
OSL_CLOSURE_BSDF_ASHIKHMIN_VELVET_ID 
OSL_CLOSURE_BSDF_WESTIN_BACKSCATTER_ID 
OSL_CLOSURE_BSDF_WESTIN_SHEEN_ID 
OSL_CLOSURE_BSSRDF_CUBIC_ID 
OSL_CLOSURE_EMISSION_ID 
OSL_CLOSURE_DEBUG_ID 
OSL_CLOSURE_BACKGROUND_ID 
OSL_CLOSURE_HOLDOUT_ID 
OSL_CLOSURE_SUBSURFACE_ID 

Definition at line 42 of file osl_closures.h.


Function Documentation

void bsdf_ashikhmin_velvet_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_diffuse_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_microfacet_beckmann_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_microfacet_beckmann_refraction_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_microfacet_ggx_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_microfacet_ggx_refraction_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_oren_nayar_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_reflection_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_refraction_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_translucent_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_transparent_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_ward_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_westin_backscatter_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void bsdf_westin_sheen_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void closure_background_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void closure_bssrdf_cubic_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void closure_debug_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void closure_emission_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void closure_holdout_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)
void closure_subsurface_prepare ( OSL::RendererServices *  ,
int  id,
void *  data 
)

Variable Documentation

OSL::ClosureParam bsdf_ashikhmin_velvet_params[]

Definition at line 166 of file bsdf_ashikhmin_velvet.cpp.

OSL::ClosureParam bsdf_diffuse_params[]

Definition at line 167 of file bsdf_diffuse.cpp.

OSL::ClosureParam bsdf_microfacet_beckmann_params[]

Definition at line 514 of file bsdf_microfacet.cpp.

Definition at line 520 of file bsdf_microfacet.cpp.

OSL::ClosureParam bsdf_microfacet_ggx_params[]

Definition at line 501 of file bsdf_microfacet.cpp.

Definition at line 507 of file bsdf_microfacet.cpp.

OSL::ClosureParam bsdf_oren_nayar_params[]

Definition at line 164 of file bsdf_oren_nayar.cpp.

OSL::ClosureParam bsdf_reflection_params[]

Definition at line 100 of file bsdf_reflection.cpp.

OSL::ClosureParam bsdf_refraction_params[]

Definition at line 111 of file bsdf_refraction.cpp.

OSL::ClosureParam bsdf_translucent_params[]

Definition at line 172 of file bsdf_diffuse.cpp.

OSL::ClosureParam bsdf_transparent_params[]

Definition at line 90 of file bsdf_transparent.cpp.

OSL::ClosureParam bsdf_ward_params[]

Definition at line 211 of file bsdf_ward.cpp.

OSL::ClosureParam bsdf_westin_backscatter_params[]

Definition at line 223 of file bsdf_westin.cpp.

OSL::ClosureParam bsdf_westin_sheen_params[]

Definition at line 229 of file bsdf_westin.cpp.

OSL::ClosureParam closure_background_params[]

Definition at line 88 of file kernel/osl/background.cpp.

OSL::ClosureParam closure_bssrdf_cubic_params[]

Definition at line 97 of file bssrdf.cpp.

OSL::ClosureParam closure_debug_params[]

Definition at line 72 of file debug.cpp.

OSL::ClosureParam closure_emission_params[]

Definition at line 100 of file emissive.cpp.

OSL::ClosureParam closure_holdout_params[]

Definition at line 94 of file kernel/osl/background.cpp.

OSL::ClosureParam closure_subsurface_params[]

Definition at line 124 of file vol_subsurface.cpp.