Skip to content
Latest commit 11341a6 Mar 10, 2016 @lgritz lgritz Make an option to have OSL isconnected() return 1 for userdata parame…
…ters.

This adds a new ShadingSystem attribute, "userdata_isconnected". The
default of 0 is the old/usual behavior that most applications want.
However, setting this attribute to 1 will cause the OSL built-in
function isconnected(paramname) to return 1 not only for connected
parameters, but also for parameters that may be bound to userdata
(i.e., those that have lockgeom=0).

The use case for this involves a renderer implementation that can mix
C++ and OSL nodes within a shading group. The outputs exported by the
C++ nodes propagate their values to the downstream node via
get_userdata(), hijacking the mechanism that is generally used geometric
primitive variable interpolation. But from the point of view of the
downstream node, they should semantically appear to be a connection.
..
Failed to load latest commit information.
CMakeLists.txt Rewrite of FindOpenEXR.cmake Feb 14, 2016
accum.cpp Support custom LPE symbols from the user Aug 20, 2014
accum_test.cpp Support custom LPE symbols from the user Aug 20, 2014
automata.cpp Move all the public headers to src/include/OSL. Mar 4, 2014
automata.h Move all the public headers to src/include/OSL. Mar 4, 2014
backendllvm.cpp
backendllvm.h
builtindecl.h
closure.cpp Merge type and id fields in ClosureColor Sep 11, 2015
constantpool.h Move all the public headers to src/include/OSL. Mar 4, 2014
constfold.cpp Add string indexing and string hashing functions to stdosl.h Jan 8, 2016
context.cpp Remove API items deprecated since 1.5 or earlier Feb 8, 2016
dictionary.cpp Support for MCJIT Feb 14, 2014
gabornoise.cpp Fix build Nov 6, 2014
instance.cpp Refactor debug printing of instance Nov 16, 2015
liboslexec.map Fix broken testshade_dso May 23, 2014
llvm_gen.cpp Fix potential SIGFPE from divide by zero in shaders. Dec 9, 2015
llvm_instance.cpp Don't test or set "layer ran bits" on last layer. Mar 8, 2016
llvm_ops.cpp Fix potential SIGFPE from divide by zero in shaders. Dec 9, 2015
llvm_util.cpp
llvmutil_test.cpp
loadshader.cpp
lpeparse.cpp
lpeparse.h Support custom LPE symbols from the user Aug 20, 2014
lpexp.cpp namespace macro simplification -- use OSL_NAMESPACE_ENTER/OSL_NAMESPA… Apr 17, 2012
lpexp.h Remove all header include guards, switch to #pragma once everywhere. Dec 4, 2013
master.cpp Support defaults for vararry parameters, with relevant tests. May 6, 2015
noiseimpl.h
opclosure.cpp Simplify code generation for keyword arguments to closures Sep 10, 2015
opcolor.cpp
opmatrix.cpp Make llvm_ops.cpp leaner by removing most of the matrix functions tha… Mar 30, 2015
opmessage.cpp
opnoise.cpp Trim down llvm_ops.cpp by removing most texture, noise, trace, and st… Mar 30, 2015
opspline.cpp Remove dummies used for linkage, no longer necessary. Jun 10, 2014
opstring.cpp Add string indexing and string hashing functions to stdosl.h Jan 8, 2016
optexture.cpp
oslexec.cpp Allow OSLQuery from inside ShadingSystem Jul 8, 2014
oslexec_pvt.h Make an option to have OSL isconnected() return 1 for userdata parame… Mar 10, 2016
osogram.y Change osl and oso flex lexers from C++ wrappers to straight C. May 26, 2015
osolex.l Change osl and oso flex lexers from C++ wrappers to straight C. May 26, 2015
osoreader.h Change osl and oso flex lexers from C++ wrappers to straight C. May 26, 2015
pointcloud.cpp
rendservices.cpp
runtimeoptimize.cpp Make an option to have OSL isconnected() return 1 for userdata parame… Mar 11, 2016
runtimeoptimize.h Fix some subtle bugs in the recent improved basic block alias analysis. Nov 27, 2015
serialize-bc.bash
shadeimage.cpp
shadingsys.cpp Make an option to have OSL isconnected() return 1 for userdata parame… Mar 11, 2016
simplexnoise.cpp Simplex noise Apr 22, 2013
splineimpl.h Move useful dual templates from splineimpl.h to dual.h Dec 30, 2013
typespec.cpp Support defaults for vararry parameters, with relevant tests. May 7, 2015
Something went wrong with that request. Please try again.