2012-05-31 20:26:36 +00:00
|
|
|
/*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Copyright 2011-2013 Blender Foundation
|
2012-05-31 20:26:36 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
2012-05-31 20:26:36 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2012-05-31 20:26:36 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
* See the License for the specific language governing permissions and
|
2014-12-25 02:50:24 +01:00
|
|
|
* limitations under the License.
|
2012-05-31 20:26:36 +00:00
|
|
|
*/
|
2011-05-20 12:26:01 +00:00
|
|
|
|
|
|
|
|
#ifndef KERNEL_TEX
|
2017-10-06 21:47:41 +02:00
|
|
|
# define KERNEL_TEX(type, name)
|
2011-05-20 12:26:01 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* bvh */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float4, __bvh_nodes)
|
|
|
|
|
KERNEL_TEX(float4, __bvh_leaf_nodes)
|
|
|
|
|
KERNEL_TEX(float4, __prim_tri_verts)
|
|
|
|
|
KERNEL_TEX(uint, __prim_tri_index)
|
|
|
|
|
KERNEL_TEX(uint, __prim_type)
|
|
|
|
|
KERNEL_TEX(uint, __prim_visibility)
|
|
|
|
|
KERNEL_TEX(uint, __prim_index)
|
|
|
|
|
KERNEL_TEX(uint, __prim_object)
|
|
|
|
|
KERNEL_TEX(uint, __object_node)
|
|
|
|
|
KERNEL_TEX(float2, __prim_time)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
|
|
|
|
/* objects */
|
2018-03-07 22:19:56 +01:00
|
|
|
KERNEL_TEX(KernelObject, __objects)
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float4, __objects_vector)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
|
|
|
|
/* triangles */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(uint, __tri_shader)
|
|
|
|
|
KERNEL_TEX(float4, __tri_vnormal)
|
|
|
|
|
KERNEL_TEX(uint4, __tri_vindex)
|
|
|
|
|
KERNEL_TEX(uint, __tri_patch)
|
|
|
|
|
KERNEL_TEX(float2, __tri_patch_uv)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
2012-12-28 14:21:30 +00:00
|
|
|
/* curves */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float4, __curves)
|
|
|
|
|
KERNEL_TEX(float4, __curve_keys)
|
2012-12-28 14:21:30 +00:00
|
|
|
|
2016-07-16 19:42:28 -04:00
|
|
|
/* patches */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(uint, __patches)
|
2016-07-16 19:42:28 -04:00
|
|
|
|
2011-05-20 12:26:01 +00:00
|
|
|
/* attributes */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(uint4, __attributes_map)
|
|
|
|
|
KERNEL_TEX(float, __attributes_float)
|
|
|
|
|
KERNEL_TEX(float4, __attributes_float3)
|
|
|
|
|
KERNEL_TEX(uchar4, __attributes_uchar4)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
|
|
|
|
/* lights */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float4, __light_distribution)
|
|
|
|
|
KERNEL_TEX(float4, __light_data)
|
|
|
|
|
KERNEL_TEX(float2, __light_background_marginal_cdf)
|
|
|
|
|
KERNEL_TEX(float2, __light_background_conditional_cdf)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
2012-06-08 16:17:57 +00:00
|
|
|
/* particles */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float4, __particles)
|
2012-06-08 16:17:57 +00:00
|
|
|
|
2011-05-20 12:26:01 +00:00
|
|
|
/* shaders */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(uint4, __svm_nodes)
|
|
|
|
|
KERNEL_TEX(uint, __shader_flag)
|
|
|
|
|
KERNEL_TEX(uint, __object_flag)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
2013-04-01 20:26:43 +00:00
|
|
|
/* lookup tables */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float, __lookup_table)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
|
|
|
|
/* sobol */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(uint, __sobol_directions)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
2017-10-06 21:47:41 +02:00
|
|
|
/* image textures */
|
|
|
|
|
KERNEL_TEX(TextureInfo, __texture_info)
|
2012-05-13 12:32:44 +00:00
|
|
|
|
2011-05-20 12:26:01 +00:00
|
|
|
#undef KERNEL_TEX
|
|
|
|
|
|