Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/svm.h
| Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | struct CompilerState { | ||||
| /* Flag whether the node with corresponding ID was already compiled or | /* Flag whether the node with corresponding ID was already compiled or | ||||
| * not. Array element with index i corresponds to a node with such if. | * not. Array element with index i corresponds to a node with such if. | ||||
| * | * | ||||
| * TODO(sergey): This is actually a copy of nodes_done just in another | * TODO(sergey): This is actually a copy of nodes_done just in another | ||||
| * notation. We can de-duplicate this storage actually after switching | * notation. We can de-duplicate this storage actually after switching | ||||
| * all areas to use this flags array. | * all areas to use this flags array. | ||||
| */ | */ | ||||
| vector<bool> nodes_done_flag; | vector<bool> nodes_done_flag; | ||||
| /* Node features that can be compiled. */ | |||||
| uint node_feature_mask; | |||||
| }; | }; | ||||
| void stack_clear_temporary(ShaderNode *node); | void stack_clear_temporary(ShaderNode *node); | ||||
| int stack_size(SocketType::Type type); | int stack_size(SocketType::Type type); | ||||
| void stack_clear_users(ShaderNode *node, ShaderNodeSet &done); | void stack_clear_users(ShaderNode *node, ShaderNodeSet &done); | ||||
| /* single closure */ | /* single closure */ | ||||
| void find_dependencies(ShaderNodeSet &dependencies, | void find_dependencies(ShaderNodeSet &dependencies, | ||||
| Show All 33 Lines | |||||