Blender V4.3
types_uint3_impl.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#ifndef __UTIL_TYPES_H__
8# error "Do not include this file directly, include util/types.h instead."
9#endif
10
12
13#ifndef __KERNEL_NATIVE_VECTOR_TYPES__
14# ifndef __KERNEL_GPU__
16{
17 util_assert(i < 3);
18 return *(&x + i);
19}
20
22{
23 util_assert(i < 3);
24 return *(&x + i);
25}
26
28{
29 util_assert(i < 3);
30 return *(&x + i);
31}
32
34{
35 util_assert(i < 3);
36 return *(&x + i);
37}
38# endif
39
41{
42 uint3 a = {x, y, z};
43 return a;
44}
45
51#endif /* __KERNEL_NATIVE_VECTOR_TYPES__ */
52
unsigned int uint
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
Definition btQuadWord.h:117
#define util_assert(statement)
Definition defines.h:98
#define ccl_device_inline
#define CCL_NAMESPACE_END
#define __forceinline
const uint32_t & operator[](int index) const
__forceinline uint operator[](uint i) const
ccl_device_inline uint3 make_uint3(uint x, uint y, uint z)
ccl_device_inline packed_uint3 make_packed_uint3(uint x, uint y, uint z)