Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/svm.h
| Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | public: | ||||
| uint attribute(AttributeStandard std); | uint attribute(AttributeStandard std); | ||||
| uint encode_uchar4(uint x, uint y = 0, uint z = 0, uint w = 0); | uint encode_uchar4(uint x, uint y = 0, uint z = 0, uint w = 0); | ||||
| uint closure_mix_weight_offset() { return mix_weight_offset; } | uint closure_mix_weight_offset() { return mix_weight_offset; } | ||||
| ShaderType output_type() { return current_type; } | ShaderType output_type() { return current_type; } | ||||
| ImageManager *image_manager; | ImageManager *image_manager; | ||||
| ShaderManager *shader_manager; | ShaderManager *shader_manager; | ||||
| Shader *current_shader; | |||||
| Scene *scene; | |||||
| bool background; | bool background; | ||||
| protected: | protected: | ||||
| /* stack */ | /* stack */ | ||||
| struct Stack { | struct Stack { | ||||
| Stack() { memset(users, 0, sizeof(users)); } | Stack() { memset(users, 0, sizeof(users)); } | ||||
| Stack(const Stack& other) { memcpy(users, other.users, sizeof(users)); } | Stack(const Stack& other) { memcpy(users, other.users, sizeof(users)); } | ||||
| Stack& operator=(const Stack& other) { memcpy(users, other.users, sizeof(users)); return *this; } | Stack& operator=(const Stack& other) { memcpy(users, other.users, sizeof(users)); return *this; } | ||||
| ▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | void generate_multi_closure(ShaderNode *root_node, | ||||
| ShaderNode *node, | ShaderNode *node, | ||||
| CompilerState *state); | CompilerState *state); | ||||
| /* compile */ | /* compile */ | ||||
| void compile_type(Shader *shader, ShaderGraph *graph, ShaderType type); | void compile_type(Shader *shader, ShaderGraph *graph, ShaderType type); | ||||
| vector<int4> current_svm_nodes; | vector<int4> current_svm_nodes; | ||||
| ShaderType current_type; | ShaderType current_type; | ||||
| Shader *current_shader; | |||||
| ShaderGraph *current_graph; | ShaderGraph *current_graph; | ||||
| Stack active_stack; | Stack active_stack; | ||||
| int max_stack_use; | int max_stack_use; | ||||
| uint mix_weight_offset; | uint mix_weight_offset; | ||||
| bool compile_failed; | bool compile_failed; | ||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __SVM_H__ */ | #endif /* __SVM_H__ */ | ||||