Files
test2/intern/cycles/kernel/osl/compat.h
Lukas Stockner c997e61414 Cycles: Bump minimum OSL version to 1.13.4
That version has a bunch of API changes, so by dropping support for older
versions we can remove old compatibility code.
Also, that version is required for OptiX support, so building a fully-featured
Cycles wasn't possible with older OSL anyways.

Pull Request: https://projects.blender.org/blender/blender/pulls/133746
2025-01-29 21:17:21 +01:00

24 lines
460 B
C

/* 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