Blender V4.3
param.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#ifndef __UTIL_PARAM_H__
6#define __UTIL_PARAM_H__
7
8/* Parameter value lists from OpenImageIO are used to store custom properties
9 * on various data, which can then later be used in shaders. */
10
11#include <OpenImageIO/paramlist.h>
12#include <OpenImageIO/typedesc.h>
13#include <OpenImageIO/ustring.h>
14
16
17OIIO_NAMESPACE_USING
18
19static constexpr TypeDesc TypeFloat2(TypeDesc::FLOAT, TypeDesc::VEC2);
20static constexpr TypeDesc TypeRGBA(TypeDesc::FLOAT, TypeDesc::VEC4, TypeDesc::COLOR);
21static constexpr TypeDesc TypeFloatArray4(TypeDesc::FLOAT,
22 TypeDesc::SCALAR,
23 TypeDesc::NOSEMANTICS,
24 4);
25
27
28#endif /* __UTIL_PARAM_H__ */
#define CCL_NAMESPACE_END
static constexpr TypeDesc TypeFloatArray4(TypeDesc::FLOAT, TypeDesc::SCALAR, TypeDesc::NOSEMANTICS, 4)
static constexpr TypeDesc TypeRGBA(TypeDesc::FLOAT, TypeDesc::VEC4, TypeDesc::COLOR)
CCL_NAMESPACE_BEGIN static OIIO_NAMESPACE_USING constexpr TypeDesc TypeFloat2(TypeDesc::FLOAT, TypeDesc::VEC2)
long long TypeDesc