Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_vector_rotate.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 Rotate */ | /* Vector Rotate */ | ||||
| ccl_device void svm_node_vector_rotate(ShaderData *sd, | ccl_device_noinline void svm_node_vector_rotate(ShaderData *sd, | ||||
| float *stack, | float *stack, | ||||
| uint input_stack_offsets, | uint input_stack_offsets, | ||||
| uint axis_stack_offsets, | uint axis_stack_offsets, | ||||
| uint result_stack_offset) | uint result_stack_offset) | ||||
| { | { | ||||
| uint type, vector_stack_offset, rotation_stack_offset, center_stack_offset, axis_stack_offset, | uint type, vector_stack_offset, rotation_stack_offset, center_stack_offset, axis_stack_offset, | ||||
| angle_stack_offset, invert; | angle_stack_offset, invert; | ||||
| svm_unpack_node_uchar4( | svm_unpack_node_uchar4( | ||||
| input_stack_offsets, &type, &vector_stack_offset, &rotation_stack_offset, &invert); | input_stack_offsets, &type, &vector_stack_offset, &rotation_stack_offset, &invert); | ||||
| svm_unpack_node_uchar3( | svm_unpack_node_uchar3( | ||||
| axis_stack_offsets, ¢er_stack_offset, &axis_stack_offset, &angle_stack_offset); | axis_stack_offsets, ¢er_stack_offset, &axis_stack_offset, &angle_stack_offset); | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||