Integer socket support in Cycles. Int values are already supported natively in OSL...
authorLukas Toenne <lukas.toenne@googlemail.com>
Sat, 20 Oct 2012 13:11:45 +0000 (13:11 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Sat, 20 Oct 2012 13:11:45 +0000 (13:11 +0000)
commitd36dc6d8de44194df9053c6c9c3f7842a8394067
treeadd53578a021411009cde01ba7a8509bcbce79fd
parentcf7dec94fe96b5905f4c543820c6ad4e27fc7451
Integer socket support in Cycles. Int values are already supported natively in OSL, but were not used as actual ints on the SVM stack. This patch implements all the necessary functionality to support reading input values from RNA properties and convert between SHADER_SOCKET_INT and other types.
16 files changed:
intern/cycles/app/cycles_xml.cpp
intern/cycles/blender/blender_shader.cpp
intern/cycles/kernel/osl/nodes/CMakeLists.txt
intern/cycles/kernel/osl/nodes/node_convert_from_color.osl
intern/cycles/kernel/osl/nodes/node_convert_from_float.osl
intern/cycles/kernel/osl/nodes/node_convert_from_int.osl [new file with mode: 0644]
intern/cycles/kernel/osl/nodes/node_convert_from_normal.osl
intern/cycles/kernel/osl/nodes/node_convert_from_point.osl
intern/cycles/kernel/osl/nodes/node_convert_from_vector.osl
intern/cycles/kernel/svm/svm.h
intern/cycles/kernel/svm/svm_convert.h
intern/cycles/kernel/svm/svm_types.h
intern/cycles/render/graph.h
intern/cycles/render/nodes.cpp
intern/cycles/render/osl.cpp
intern/cycles/render/svm.cpp