Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/image.h
| Show All 31 Lines | |||||
| class Progress; | class Progress; | ||||
| class Scene; | class Scene; | ||||
| class ImageManager { | class ImageManager { | ||||
| public: | public: | ||||
| explicit ImageManager(const DeviceInfo& info); | explicit ImageManager(const DeviceInfo& info); | ||||
| ~ImageManager(); | ~ImageManager(); | ||||
| enum ImageDataType { | |||||
| IMAGE_DATA_TYPE_FLOAT4 = 0, | |||||
| IMAGE_DATA_TYPE_BYTE4 = 1, | |||||
| IMAGE_DATA_TYPE_HALF4 = 2, | |||||
| IMAGE_DATA_TYPE_FLOAT = 3, | |||||
| IMAGE_DATA_TYPE_BYTE = 4, | |||||
| IMAGE_DATA_TYPE_HALF = 5, | |||||
| IMAGE_DATA_NUM_TYPES | |||||
| }; | |||||
| int add_image(const string& filename, | int add_image(const string& filename, | ||||
| void *builtin_data, | void *builtin_data, | ||||
| bool animated, | bool animated, | ||||
| float frame, | float frame, | ||||
| bool& is_float, | bool& is_float, | ||||
| bool& is_linear, | bool& is_linear, | ||||
| InterpolationType interpolation, | InterpolationType interpolation, | ||||
| ExtensionType extension, | ExtensionType extension, | ||||
| ▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | struct Image { | ||||
| InterpolationType interpolation; | InterpolationType interpolation; | ||||
| ExtensionType extension; | ExtensionType extension; | ||||
| int users; | int users; | ||||
| }; | }; | ||||
| private: | private: | ||||
| int tex_num_images[IMAGE_DATA_NUM_TYPES]; | int tex_num_images[IMAGE_DATA_NUM_TYPES]; | ||||
| int tex_start_images[IMAGE_DATA_NUM_TYPES]; | int max_num_images; | ||||
| bool has_half_images; | |||||
| bool cuda_fermi_limits; | |||||
| thread_mutex device_mutex; | thread_mutex device_mutex; | ||||
| int animation_frame; | int animation_frame; | ||||
| vector<Image*> images[IMAGE_DATA_NUM_TYPES]; | vector<Image*> images[IMAGE_DATA_NUM_TYPES]; | ||||
| void *osl_texture_system; | void *osl_texture_system; | ||||
| bool pack_images; | bool pack_images; | ||||
| Show All 36 Lines | |||||