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

compositor_split_viewer_info.hh « infos « shaders « realtime_compositor « compositor « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d5793b0ce5950e580cb84ae665ad40839fe87da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-or-later */

#include "gpu_shader_create_info.hh"

GPU_SHADER_CREATE_INFO(compositor_split_viewer_shared)
    .local_group_size(16, 16)
    .push_constant(Type::FLOAT, "split_ratio")
    .push_constant(Type::IVEC2, "view_size")
    .sampler(0, ImageType::FLOAT_2D, "first_image_tx")
    .sampler(1, ImageType::FLOAT_2D, "second_image_tx")
    .image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "output_img")
    .compute_source("compositor_split_viewer.glsl");

GPU_SHADER_CREATE_INFO(compositor_split_viewer_horizontal)
    .additional_info("compositor_split_viewer_shared")
    .define("SPLIT_HORIZONTAL")
    .do_static_compilation(true);

GPU_SHADER_CREATE_INFO(compositor_split_viewer_vertical)
    .additional_info("compositor_split_viewer_shared")
    .define("SPLIT_VERTICAL")
    .do_static_compilation(true);