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

compositor_alpha_crop_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: 0f0be5f95bb7b861ac4eb8cf178cb1ba7b8f9128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright 2022 Blender Foundation. All rights reserved. */

#include "gpu_shader_create_info.hh"

GPU_SHADER_CREATE_INFO(compositor_alpha_crop)
    .local_group_size(16, 16)
    .push_constant(Type::IVEC2, "lower_bound")
    .push_constant(Type::IVEC2, "higher_bound")
    .sampler(0, ImageType::FLOAT_2D, "input_image")
    .image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "output_image")
    .compute_source("compositor_alpha_crop.glsl")
    .do_static_compilation(true);