Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/object.h
| Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | public: | ||||
| uint visibility_for_tracing() const; | uint visibility_for_tracing() const; | ||||
| /* Returns the index that is used in the kernel for this object. */ | /* Returns the index that is used in the kernel for this object. */ | ||||
| int get_device_index() const; | int get_device_index() const; | ||||
| /* Compute step size from attributes, shaders, transforms. */ | /* Compute step size from attributes, shaders, transforms. */ | ||||
| float compute_volume_step_size() const; | float compute_volume_step_size() const; | ||||
| /* Check whether this object requires volume sampling (and hence might require space in the | |||||
| * volume stack). | |||||
| * | |||||
| * Note that this is a naive iteration over sharders, which allows to access information prior | |||||
| * to `scene_update()`. */ | |||||
| bool check_is_volume() const; | |||||
| protected: | protected: | ||||
| /* Specifies the position of the object in scene->objects and | /* Specifies the position of the object in scene->objects and | ||||
| * in the device vectors. Gets set in device_update. */ | * in the device vectors. Gets set in device_update. */ | ||||
| int index; | int index; | ||||
| /* Reference to the attribute map with object attributes, | /* Reference to the attribute map with object attributes, | ||||
| * or 0 if none. Set in update_svm_attributes. */ | * or 0 if none. Set in update_svm_attributes. */ | ||||
| size_t attr_map_offset; | size_t attr_map_offset; | ||||
| ▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines | |||||