Blender
V4.3
intern
cycles
kernel
osl
osl/compat.h
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2011-2023 Blender Foundation
2
*
3
* SPDX-License-Identifier: Apache-2.0 */
4
5
#pragma once
6
7
#include <OSL/oslconfig.h>
8
9
CCL_NAMESPACE_BEGIN
10
11
typedef
OSL::ustringhash
OSLUStringHash
;
12
#if OSL_LIBRARY_VERSION_CODE >= 11400
13
typedef
OSL::ustringhash
OSLUStringRep
;
14
#else
15
typedef
OSL::ustringrep
OSLUStringRep
;
16
#endif
17
18
static
inline
OSL::ustring
to_ustring
(
OSLUStringHash
h)
19
{
20
return
OSL::ustring::from_hash(h.hash());
21
}
22
23
CCL_NAMESPACE_END
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition
device/cuda/compat.h:10
CCL_NAMESPACE_BEGIN
Definition
python.cpp:44
to_ustring
static OSL::ustring to_ustring(OSLUStringHash h)
Definition
osl/compat.h:18
OSLUStringHash
CCL_NAMESPACE_BEGIN typedef OSL::ustringhash OSLUStringHash
Definition
osl/compat.h:11
OSLUStringRep
OSL::ustringrep OSLUStringRep
Definition
osl/compat.h:15
Generated on Sat Oct 4 2025 05:32:23 for Blender by
doxygen
1.14.0