forked from bartvdbraak/blender
Cycles: Remove unused macro
This commit is contained in:
parent
ba8c7d2ba1
commit
27248c8636
@ -22,16 +22,6 @@
|
|||||||
|
|
||||||
CCL_NAMESPACE_BEGIN
|
CCL_NAMESPACE_BEGIN
|
||||||
|
|
||||||
/* Workaround stupidness of CUDA/OpenCL which doesn't allow to access indexed
|
|
||||||
* component of float3 value.
|
|
||||||
*/
|
|
||||||
#ifndef __KERNEL_CPU__
|
|
||||||
# define IDX(vec, idx) \
|
|
||||||
((idx == 0) ? ((vec).x) : ( (idx == 1) ? ((vec).y) : ((vec).z) ))
|
|
||||||
#else
|
|
||||||
# define IDX(vec, idx) ((vec)[idx])
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Ray-Triangle intersection for BVH traversal
|
/* Ray-Triangle intersection for BVH traversal
|
||||||
*
|
*
|
||||||
* Sven Woop
|
* Sven Woop
|
||||||
@ -309,6 +299,4 @@ ccl_device_inline float3 triangle_refine_subsurface(KernelGlobals *kg,
|
|||||||
return P;
|
return P;
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef IDX
|
|
||||||
|
|
||||||
CCL_NAMESPACE_END
|
CCL_NAMESPACE_END
|
||||||
|
Loading…
Reference in New Issue
Block a user