Blender V5.0
types_uchar3.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#pragma once
6
7#include "util/types_base.h"
8
10
11#ifndef __KERNEL_NATIVE_VECTOR_TYPES__
12struct uchar3 {
14
15# ifndef __KERNEL_GPU__
17 {
18 util_assert(i >= 0);
19 util_assert(i < 3);
20 return *(&x + i);
21 }
22
24 {
25 util_assert(i >= 0);
26 util_assert(i < 3);
27 return *(&x + i);
28 }
29# endif
30};
31
33{
34 uchar3 a = {x, y, z};
35 return a;
36}
37#endif /* __KERNEL_NATIVE_VECTOR_TYPES__ */
38
unsigned char uchar
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
Definition btQuadWord.h:117
#define util_assert(statement)
#define ccl_device_inline
#define __forceinline
#define CCL_NAMESPACE_END
__forceinline uchar & operator[](int i)
uchar y
uchar z
uchar x
__forceinline uchar operator[](int i) const
i
Definition text_draw.cc:230
ccl_device_inline uchar3 make_uchar3(const uchar x, const uchar y, uchar z)