Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-09-19 15:57:31 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-09-19 15:57:31 +0400
commite9b967d05b366783a93d92d6935e970c1ea42edd (patch)
tree5103ffdf6d1badb339a5652022db343b7d164219 /intern/cycles/util/util_transform.h
parent61f77fffac0e58142420100b8ead7c854e15fbb8 (diff)
Cycles: remove deprecated strict aliasing flag for opencl, fix missing update
modifying object layer in properties editor, and add memarena utility.
Diffstat (limited to 'intern/cycles/util/util_transform.h')
-rw-r--r--intern/cycles/util/util_transform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h
index 998d4161ebf..c43736fb2e4 100644
--- a/intern/cycles/util/util_transform.h
+++ b/intern/cycles/util/util_transform.h
@@ -30,6 +30,11 @@ CCL_NAMESPACE_BEGIN
typedef struct Transform {
float4 x, y, z, w; /* rows */
+
+#ifndef __KERNEL_GPU__
+ float4 operator[](int i) const { return *(&x + i); }
+ float4& operator[](int i) { return *(&x + i); }
+#endif
} Transform;
__device_inline float3 transform(const Transform *t, const float3 a)