Add Chromium-only Blender WebEngine parity work
This commit is contained in:
23
blender-5.2.0/intern/cycles/kernel/osl/compat.h
Normal file
23
blender-5.2.0/intern/cycles/kernel/osl/compat.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* SPDX-FileCopyrightText: 2011-2023 Blender Foundation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <OSL/oslconfig.h>
|
||||
|
||||
CCL_NAMESPACE_BEGIN
|
||||
|
||||
using OSLUStringHash = OSL::ustringhash;
|
||||
#if OSL_LIBRARY_VERSION_CODE >= 11400
|
||||
using OSLUStringRep = OSL::ustringhash;
|
||||
#else
|
||||
using OSLUStringRep = OSL::ustringrep;
|
||||
#endif
|
||||
|
||||
static inline OSL::ustring to_ustring(OSLUStringHash h)
|
||||
{
|
||||
return OSL::ustring::from_hash(h.hash());
|
||||
}
|
||||
|
||||
CCL_NAMESPACE_END
|
||||
Reference in New Issue
Block a user