Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_convert.h
| Show All 12 Lines | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| /* Conversion Nodes */ | /* Conversion Nodes */ | ||||
| ccl_device void svm_node_convert( | ccl_device_noinline void svm_node_convert( | ||||
| KernelGlobals *kg, ShaderData *sd, float *stack, uint type, uint from, uint to) | const KernelGlobals *kg, ShaderData *sd, float *stack, uint type, uint from, uint to) | ||||
| { | { | ||||
| switch (type) { | switch (type) { | ||||
| case NODE_CONVERT_FI: { | case NODE_CONVERT_FI: { | ||||
| float f = stack_load_float(stack, from); | float f = stack_load_float(stack, from); | ||||
| stack_store_int(stack, to, float_to_int(f)); | stack_store_int(stack, to, float_to_int(f)); | ||||
| break; | break; | ||||
| } | } | ||||
| case NODE_CONVERT_FV: { | case NODE_CONVERT_FV: { | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||