Blender  V2.93
kernel_adaptive_filter_y.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Blender Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
18 
20 {
21  int pixel_index = ccl_global_id(1) * ccl_global_size(0) + ccl_global_id(0);
22  if (pixel_index < kernel_split_params.tile.w &&
23  kernel_split_params.tile.start_sample + kernel_split_params.tile.num_samples >=
24  kernel_data.integrator.adaptive_min_samples) {
25  int x = kernel_split_params.tile.x + pixel_index;
27  }
28 }
CCL_NAMESPACE_BEGIN ccl_device void kernel_adaptive_filter_y(KernelGlobals *kg)
ccl_device bool kernel_do_adaptive_filter_y(KernelGlobals *kg, int x, ccl_global WorkTile *tile)
#define kernel_data
#define ccl_global_id(d)
#define ccl_global_size(d)
#define ccl_device
#define CCL_NAMESPACE_END
#define kernel_split_params