Blender V4.3
eevee_ambient_occlusion_info.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include "eevee_defines.hh"
7
8GPU_SHADER_CREATE_INFO(eevee_ambient_occlusion_pass)
9 .define("HORIZON_OCCLUSION")
10 .compute_source("eevee_ambient_occlusion_pass_comp.glsl")
12 .image(0, GPU_RGBA16F, Qualifier::READ, ImageType::FLOAT_2D_ARRAY, "in_normal_img")
13 .push_constant(Type::INT, "in_normal_img_layer_index")
14 .image(1, GPU_R16F, Qualifier::WRITE, ImageType::FLOAT_2D_ARRAY, "out_ao_img")
15 .push_constant(Type::INT, "out_ao_img_layer_index")
16 .specialization_constant(Type::INT, "ao_slice_count", 2)
17 .specialization_constant(Type::INT, "ao_step_count", 8)
18 .additional_info("draw_view",
19 "eevee_shared",
20 "eevee_hiz_data",
21 "eevee_sampling_data",
22 "eevee_utility_texture",
23 "eevee_global_ubo")
24 .do_static_compilation(true);
#define AMBIENT_OCCLUSION_PASS_TILE_SIZE
#define GPU_SHADER_CREATE_INFO(_info)