Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/split/kernel_indirect_background.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 | ||||
| ccl_device void kernel_indirect_background(KernelGlobals *kg) | ccl_device void kernel_indirect_background(KernelGlobals *kg) | ||||
| { | { | ||||
| ccl_global char *ray_state = kernel_split_state.ray_state; | ccl_global char *ray_state = kernel_split_state.ray_state; | ||||
| int thread_index = ccl_global_id(1) * ccl_global_size(0) + ccl_global_id(0); | int thread_index = ccl_global_id(1) * ccl_global_size(0) + ccl_global_id(0); | ||||
| int ray_index; | int ray_index; | ||||
| if(kernel_data.integrator.ao_bounces) { | if(kernel_data.integrator.ao_bounces) { | ||||
| ray_index = get_ray_index(kg, thread_index, | ray_index = get_ray_index(kg, thread_index, | ||||
| QUEUE_ACTIVE_AND_REGENERATED_RAYS, | QUEUE_ACTIVE_AND_REGENERATED_RAYS, | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||