kernel_textures.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * Copyright 2011-2013 Blender Foundation
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef KERNEL_TEX
  17. # define KERNEL_TEX(type, name)
  18. #endif
  19. /* bvh */
  20. KERNEL_TEX(float4, __bvh_nodes)
  21. KERNEL_TEX(float4, __bvh_leaf_nodes)
  22. KERNEL_TEX(float4, __prim_tri_verts)
  23. KERNEL_TEX(uint, __prim_tri_index)
  24. KERNEL_TEX(uint, __prim_type)
  25. KERNEL_TEX(uint, __prim_visibility)
  26. KERNEL_TEX(uint, __prim_index)
  27. KERNEL_TEX(uint, __prim_object)
  28. KERNEL_TEX(uint, __object_node)
  29. KERNEL_TEX(float2, __prim_time)
  30. /* objects */
  31. KERNEL_TEX(KernelObject, __objects)
  32. KERNEL_TEX(Transform, __object_motion_pass)
  33. KERNEL_TEX(DecomposedTransform, __object_motion)
  34. KERNEL_TEX(uint, __object_flag)
  35. /* cameras */
  36. KERNEL_TEX(DecomposedTransform, __camera_motion)
  37. /* triangles */
  38. KERNEL_TEX(uint, __tri_shader)
  39. KERNEL_TEX(float4, __tri_vnormal)
  40. KERNEL_TEX(uint4, __tri_vindex)
  41. KERNEL_TEX(uint, __tri_patch)
  42. KERNEL_TEX(float2, __tri_patch_uv)
  43. /* curves */
  44. KERNEL_TEX(float4, __curves)
  45. KERNEL_TEX(float4, __curve_keys)
  46. /* patches */
  47. KERNEL_TEX(uint, __patches)
  48. /* attributes */
  49. KERNEL_TEX(uint4, __attributes_map)
  50. KERNEL_TEX(float, __attributes_float)
  51. KERNEL_TEX(float2, __attributes_float2)
  52. KERNEL_TEX(float4, __attributes_float3)
  53. KERNEL_TEX(uchar4, __attributes_uchar4)
  54. /* lights */
  55. KERNEL_TEX(KernelLightDistribution, __light_distribution)
  56. KERNEL_TEX(KernelLight, __lights)
  57. KERNEL_TEX(float2, __light_background_marginal_cdf)
  58. KERNEL_TEX(float2, __light_background_conditional_cdf)
  59. /* particles */
  60. KERNEL_TEX(KernelParticle, __particles)
  61. /* shaders */
  62. KERNEL_TEX(uint4, __svm_nodes)
  63. KERNEL_TEX(KernelShader, __shaders)
  64. /* lookup tables */
  65. KERNEL_TEX(float, __lookup_table)
  66. /* sobol */
  67. KERNEL_TEX(uint, __sobol_directions)
  68. /* image textures */
  69. KERNEL_TEX(TextureInfo, __texture_info)
  70. /* ies lights */
  71. KERNEL_TEX(float, __ies)
  72. #undef KERNEL_TEX