Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/osl.h
| Show All 15 Lines | |||||
| #ifndef __OSL_H__ | #ifndef __OSL_H__ | ||||
| #define __OSL_H__ | #define __OSL_H__ | ||||
| #include "util_set.h" | #include "util_set.h" | ||||
| #include "util_string.h" | #include "util_string.h" | ||||
| #include "util_thread.h" | #include "util_thread.h" | ||||
| #include "graph.h" | |||||
| #include "shader.h" | #include "shader.h" | ||||
| #ifdef WITH_OSL | #ifdef WITH_OSL | ||||
| #include <OSL/oslcomp.h> | #include <OSL/oslcomp.h> | ||||
| #include <OSL/oslexec.h> | #include <OSL/oslexec.h> | ||||
| #include <OSL/oslquery.h> | #include <OSL/oslquery.h> | ||||
| #endif | #endif | ||||
| ▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | |||||
| private: | private: | ||||
| #ifdef WITH_OSL | #ifdef WITH_OSL | ||||
| string id(ShaderNode *node); | string id(ShaderNode *node); | ||||
| OSL::ShadingAttribStateRef compile_type(Shader *shader, ShaderGraph *graph, ShaderType type); | OSL::ShadingAttribStateRef compile_type(Shader *shader, ShaderGraph *graph, ShaderType type); | ||||
| bool node_skip_input(ShaderNode *node, ShaderInput *input); | bool node_skip_input(ShaderNode *node, ShaderInput *input); | ||||
| string compatible_name(ShaderNode *node, ShaderInput *input); | string compatible_name(ShaderNode *node, ShaderInput *input); | ||||
| string compatible_name(ShaderNode *node, ShaderOutput *output); | string compatible_name(ShaderNode *node, ShaderOutput *output); | ||||
| void find_dependencies(set<ShaderNode*>& dependencies, ShaderInput *input); | void find_dependencies(ShaderNodeSet& dependencies, ShaderInput *input); | ||||
| void generate_nodes(const set<ShaderNode*>& nodes); | void generate_nodes(const ShaderNodeSet& nodes); | ||||
| #endif | #endif | ||||
| void *shadingsys; | void *shadingsys; | ||||
| void *manager; | void *manager; | ||||
| ShaderType current_type; | ShaderType current_type; | ||||
| Shader *current_shader; | Shader *current_shader; | ||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __OSL_H__ */ | #endif /* __OSL_H__ */ | ||||