Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/svm/svm_white_noise.h
| Show All 10 Lines | |||||
| * distributed under the License is distributed on an "AS IS" BASIS, | * distributed under the License is distributed on an "AS IS" BASIS, | ||||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| * 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 | ||||
| ccl_device void svm_node_tex_white_noise(KernelGlobals *kg, | ccl_device_noinline void svm_node_tex_white_noise(const KernelGlobals *kg, | ||||
| ShaderData *sd, | ShaderData *sd, | ||||
| float *stack, | float *stack, | ||||
| uint dimensions, | uint dimensions, | ||||
| uint inputs_stack_offsets, | uint inputs_stack_offsets, | ||||
| uint ouptuts_stack_offsets, | uint ouptuts_stack_offsets) | ||||
| int *offset) | |||||
| { | { | ||||
| uint vector_stack_offset, w_stack_offset, value_stack_offset, color_stack_offset; | uint vector_stack_offset, w_stack_offset, value_stack_offset, color_stack_offset; | ||||
| svm_unpack_node_uchar2(inputs_stack_offsets, &vector_stack_offset, &w_stack_offset); | svm_unpack_node_uchar2(inputs_stack_offsets, &vector_stack_offset, &w_stack_offset); | ||||
| svm_unpack_node_uchar2(ouptuts_stack_offsets, &value_stack_offset, &color_stack_offset); | svm_unpack_node_uchar2(ouptuts_stack_offsets, &value_stack_offset, &color_stack_offset); | ||||
| float3 vector = stack_load_float3(stack, vector_stack_offset); | float3 vector = stack_load_float3(stack, vector_stack_offset); | ||||
| float w = stack_load_float(stack, w_stack_offset); | float w = stack_load_float(stack, w_stack_offset); | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||