Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/osl/osl_services.h
| Show All 34 Lines | |||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| class Object; | class Object; | ||||
| class Scene; | class Scene; | ||||
| class Shader; | class Shader; | ||||
| struct ShaderData; | struct ShaderData; | ||||
| struct float3; | struct float3; | ||||
| struct KernelGlobals; | struct KernelGlobalsCPU; | ||||
| /* OSL Texture Handle | /* OSL Texture Handle | ||||
| * | * | ||||
| * OSL texture lookups are string based. If those strings are known at compile | * OSL texture lookups are string based. If those strings are known at compile | ||||
| * time, the OSL compiler can cache a texture handle to use instead of a string. | * time, the OSL compiler can cache a texture handle to use instead of a string. | ||||
| * | * | ||||
| * 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 | ||||
| ▲ Show 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | bool get_texture_info(OSL::ShaderGlobals *sg, | ||||
| ustring filename, | ustring filename, | ||||
| TextureHandle *texture_handle, | TextureHandle *texture_handle, | ||||
| int subimage, | int subimage, | ||||
| ustring dataname, | ustring dataname, | ||||
| TypeDesc datatype, | TypeDesc datatype, | ||||
| void *data) override; | void *data) override; | ||||
| #endif | #endif | ||||
| static bool get_background_attribute(const KernelGlobals *kg, | static bool get_background_attribute(const KernelGlobalsCPU *kg, | ||||
| ShaderData *sd, | ShaderData *sd, | ||||
| ustring name, | ustring name, | ||||
| TypeDesc type, | TypeDesc type, | ||||
| bool derivatives, | bool derivatives, | ||||
| void *val); | void *val); | ||||
| static bool get_object_standard_attribute(const KernelGlobals *kg, | static bool get_object_standard_attribute(const KernelGlobalsCPU *kg, | ||||
| ShaderData *sd, | ShaderData *sd, | ||||
| ustring name, | ustring name, | ||||
| TypeDesc type, | TypeDesc type, | ||||
| bool derivatives, | bool derivatives, | ||||
| void *val); | void *val); | ||||
| static ustring u_distance; | static ustring u_distance; | ||||
| static ustring u_index; | static ustring u_index; | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||