Welcome to mirror list, hosted at ThFree Co, Russian Federation.

compositor_blur_variable_size_info.hh « infos « compositor « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 05b6385fd1eba3354c0305560f6792c2fe28f8f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: GPL-2.0-or-later */

#include "gpu_shader_create_info.hh"

GPU_SHADER_CREATE_INFO(compositor_blur_variable_size)
    .local_group_size(16, 16)
    .push_constant(Type::FLOAT, "base_size")
    .push_constant(Type::INT, "search_radius")
    .sampler(0, ImageType::FLOAT_2D, "input_tx")
    .sampler(1, ImageType::FLOAT_2D, "weights_tx")
    .sampler(2, ImageType::FLOAT_2D, "size_tx")
    .sampler(3, ImageType::FLOAT_2D, "mask_tx")
    .image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "output_img")
    .compute_source("compositor_blur_variable_size.glsl")
    .do_static_compilation(true);