[Bf-blender-cvs] [b073275d47] cycles-tiles-rework: Cycles: Add SampleRange struct
Mai Lavelle
noreply at git.blender.org
Fri Jan 13 02:52:35 CET 2017
Commit: b073275d478d4c83a8c5338f09a67955d5d8bc05
Author: Mai Lavelle
Date: Fri Jan 6 21:24:02 2017 -0500
Branches: cycles-tiles-rework
https://developer.blender.org/rBb073275d478d4c83a8c5338f09a67955d5d8bc05
Cycles: Add SampleRange struct
This struct will be used to describe the ranges of tile samples passed
to the kernel when rendering multiple tiles samples at once.
===================================================================
M intern/cycles/kernel/kernel_types.h
===================================================================
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h
index 2563f1491b..969907391b 100644
--- a/intern/cycles/kernel/kernel_types.h
+++ b/intern/cycles/kernel/kernel_types.h
@@ -1274,6 +1274,22 @@ enum RayState {
#define PATCH_MAP_NODE_IS_LEAF (1u << 31)
#define PATCH_MAP_NODE_INDEX_MASK (~(PATCH_MAP_NODE_IS_SET | PATCH_MAP_NODE_IS_LEAF))
+/* Sample Range */
+
+typedef struct SampleRange {
+ float *buffer;
+ uint *rng_state;
+ int x;
+ int y;
+ int w;
+ int h;
+ int offset;
+ int stride;
+ int sample;
+ int work_offset;
+} SampleRange;
+static_assert_align(SampleRange, 16);
+
CCL_NAMESPACE_END
#endif /* __KERNEL_TYPES_H__ */
More information about the Bf-blender-cvs
mailing list