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

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

#include "gpu_shader_create_info.hh"

GPU_SHADER_CREATE_INFO(overlay_background)
    .do_static_compilation(true)
    .typedef_source("overlay_shader_shared.h")
    .sampler(0, ImageType::FLOAT_2D, "colorBuffer")
    .sampler(1, ImageType::DEPTH_2D, "depthBuffer")
    .push_constant(Type::INT, "bgType")
    .push_constant(Type::VEC4, "colorOverride")
    .fragment_source("overlay_background_frag.glsl")
    .fragment_out(0, Type::VEC4, "fragColor")
    .additional_info("draw_fullscreen", "draw_globals");

GPU_SHADER_CREATE_INFO(overlay_clipbound)
    .do_static_compilation(true)
    .push_constant(Type::VEC4, "color")
    .push_constant(Type::VEC3, "boundbox", 8)
    .vertex_source("overlay_clipbound_vert.glsl")
    .fragment_out(0, Type::VEC4, "fragColor")
    .fragment_source("overlay_uniform_color_frag.glsl")
    .additional_info("draw_view");