Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device.h
| Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
| protected: | protected: | ||||
| Device(DeviceInfo& info_, Stats &stats_, bool background) : background(background), vertex_buffer(0), info(info_), stats(stats_) {} | Device(DeviceInfo& info_, Stats &stats_, bool background) : background(background), vertex_buffer(0), info(info_), stats(stats_) {} | ||||
| bool background; | bool background; | ||||
| string error_msg; | string error_msg; | ||||
| /* used for real time display */ | /* used for real time display */ | ||||
| unsigned int vertex_buffer; | unsigned int vertex_buffer; | ||||
lukasstockner97: Diff Noise | |||||
sergeyAuthorUnsubmitted Not Done Inline ActionsRemoved. sergey: Removed. | |||||
| public: | public: | ||||
| virtual ~Device(); | virtual ~Device(); | ||||
| /* info */ | /* info */ | ||||
| DeviceInfo info; | DeviceInfo info; | ||||
| virtual const string& error_message() { return error_msg; } | virtual const string& error_message() { return error_msg; } | ||||
| bool have_error() { return !error_message().empty(); } | bool have_error() { return !error_message().empty(); } | ||||
| ▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | #endif | ||||
| /* static */ | /* static */ | ||||
| static Device *create(DeviceInfo& info, Stats &stats, bool background = true); | static Device *create(DeviceInfo& info, Stats &stats, bool background = true); | ||||
| static DeviceType type_from_string(const char *name); | static DeviceType type_from_string(const char *name); | ||||
| static string string_from_type(DeviceType type); | static string string_from_type(DeviceType type); | ||||
| static vector<DeviceType>& available_types(); | static vector<DeviceType>& available_types(); | ||||
| static vector<DeviceInfo>& available_devices(); | static vector<DeviceInfo>& available_devices(); | ||||
| static string device_capabilities(); | static string device_capabilities(); | ||||
| /* Tag devices lists for update. */ | |||||
| static void tag_update(); | |||||
| private: | |||||
| /* Indicted whether device types and devices lists were initialized. */ | |||||
| static bool need_types_update, need_devices_update; | |||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __DEVICE_H__ */ | #endif /* __DEVICE_H__ */ | ||||
Diff Noise