Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_vector_transform.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 | ||||
| /* Vector Transform */ | /* Vector Transform */ | ||||
| ccl_device void svm_node_vector_transform(KernelGlobals *kg, | ccl_device_noinline void svm_node_vector_transform(const KernelGlobals *kg, | ||||
| ShaderData *sd, | ShaderData *sd, | ||||
| float *stack, | float *stack, | ||||
| uint4 node) | uint4 node) | ||||
| { | { | ||||
| uint itype, ifrom, ito; | uint itype, ifrom, ito; | ||||
| uint vector_in, vector_out; | uint vector_in, vector_out; | ||||
| svm_unpack_node_uchar3(node.y, &itype, &ifrom, &ito); | svm_unpack_node_uchar3(node.y, &itype, &ifrom, &ito); | ||||
| svm_unpack_node_uchar2(node.z, &vector_in, &vector_out); | svm_unpack_node_uchar2(node.z, &vector_in, &vector_out); | ||||
| float3 in = stack_load_float3(stack, vector_in); | float3 in = stack_load_float3(stack, vector_in); | ||||
| ▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines | |||||