Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/osl/osl_services.h
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
| * By default it uses TextureSystem::TextureHandle. But since we want to support | * By default it uses TextureSystem::TextureHandle. But since we want to support | ||||
| * different kinds of textures and color space conversions, this is our own handle | * different kinds of textures and color space conversions, this is our own handle | ||||
| * with additional data. | * with additional data. | ||||
| * | * | ||||
| * These are stored in a concurrent hash map, because OSL can compile multiple | * These are stored in a concurrent hash map, because OSL can compile multiple | ||||
| * shaders in parallel. */ | * shaders in parallel. */ | ||||
| struct OSLTextureHandle : public OIIO::RefCnt { | struct OSLTextureHandle : public OIIO::RefCnt { | ||||
| /* | |||||
| * OIIO - OpenImageIO (https://github.com/OpenImageIO/oiio) | |||||
| * SVM - Shader Virtual-Machine (internal) | |||||
| * IES - Illuminating Engineering Society (Photometric lighting standard) | |||||
| * BEVEL - "bevel" | |||||
| * AO - Ambient Occlusion | |||||
| */ | |||||
| enum Type { OIIO, SVM, IES, BEVEL, AO }; | enum Type { OIIO, SVM, IES, BEVEL, AO }; | ||||
| OSLTextureHandle(Type type = OIIO, int svm_slot = -1) | OSLTextureHandle(Type type = OIIO, int svm_slot = -1) | ||||
| : type(type), svm_slot(svm_slot), oiio_handle(NULL), processor(NULL) | : type(type), svm_slot(svm_slot), oiio_handle(NULL), processor(NULL) | ||||
| { | { | ||||
| } | } | ||||
| Type type; | Type type; | ||||
| ▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines | |||||