Blender
V5.0
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
using
OSLUStringHash
= OSL::ustringhash;
12
#if OSL_LIBRARY_VERSION_CODE >= 11400
13
using
OSLUStringRep
= OSL::ustringhash;
14
#else
15
using
OSLUStringRep
= OSL::ustringrep;
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:37
OSLUStringHash
OSL::ustringhash OSLUStringHash
Definition
osl/compat.h:11
OSLUStringRep
OSL::ustringrep OSLUStringRep
Definition
osl/compat.h:15
to_ustring
static OSL::ustring to_ustring(OSLUStringHash h)
Definition
osl/compat.h:18
Generated on
for Blender by
doxygen
1.16.1