Blender  V3.3
types_float2.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2011-2022 Blender Foundation */
3 
4 #ifndef __UTIL_TYPES_FLOAT2_H__
5 #define __UTIL_TYPES_FLOAT2_H__
6 
7 #ifndef __UTIL_TYPES_H__
8 # error "Do not include this file directly, include util/types.h instead."
9 #endif
10 
12 
13 #if !defined(__KERNEL_GPU__) || defined(__KERNEL_ONEAPI__)
14 struct float2 {
15  float x, y;
16 
17  __forceinline float operator[](int i) const;
18  __forceinline float &operator[](int i);
19 };
20 
21 ccl_device_inline float2 make_float2(float x, float y);
22 ccl_device_inline void print_float2(const char *label, const float2 &a);
23 #endif /* !defined(__KERNEL_GPU__) || defined(__KERNEL_ONEAPI__) */
24 
26 
27 #endif /* __UTIL_TYPES_FLOAT2_H__ */
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
#define ccl_device_inline
Definition: cuda/compat.h:34
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9
const char * label
static unsigned a[3]
Definition: RandGen.cpp:78
#define __forceinline
float x
Definition: types_float2.h:15
float y
Definition: types_float2.h:15
__forceinline float operator[](int i) const
ccl_device_inline void print_float2(const char *label, const float2 &a)
ccl_device_inline float2 make_float2(float x, float y)