Blender V4.3
gpu_shader_sequencer_info.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11
12GPU_SHADER_INTERFACE_INFO(gpu_seq_strip_iface, "")
13 .no_perspective(Type::VEC2, "co_interp")
14 .flat(Type::UINT, "strip_id");
15
16GPU_SHADER_CREATE_INFO(gpu_shader_sequencer_strips)
17 .vertex_out(gpu_seq_strip_iface)
18 .fragment_out(0, Type::VEC4, "fragColor")
19 .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
20 .uniform_buf(0, "SeqStripDrawData", "strip_data[GPU_SEQ_STRIP_DRAW_DATA_LEN]")
21 .uniform_buf(1, "SeqContextDrawData", "context_data")
22 .typedef_source("GPU_shader_shared.hh")
23 .vertex_source("gpu_shader_sequencer_strips_vert.glsl")
24 .fragment_source("gpu_shader_sequencer_strips_frag.glsl")
25 .do_static_compilation(true);
26
27GPU_SHADER_INTERFACE_INFO(gpu_seq_thumb_iface, "")
28 .no_perspective(Type::VEC2, "pos_interp")
29 .no_perspective(Type::VEC2, "texCoord_interp")
30 .flat(Type::UINT, "thumb_id");
31
32GPU_SHADER_CREATE_INFO(gpu_shader_sequencer_thumbs)
33 .vertex_out(gpu_seq_thumb_iface)
34 .fragment_out(0, Type::VEC4, "fragColor")
35 .push_constant(Type::MAT4, "ModelViewProjectionMatrix")
36 .uniform_buf(0, "SeqStripThumbData", "thumb_data[GPU_SEQ_STRIP_DRAW_DATA_LEN]")
37 .uniform_buf(1, "SeqContextDrawData", "context_data")
38 .sampler(0, ImageType::FLOAT_2D, "image")
39 .typedef_source("GPU_shader_shared.hh")
40 .vertex_source("gpu_shader_sequencer_thumbs_vert.glsl")
41 .fragment_source("gpu_shader_sequencer_thumbs_frag.glsl")
42 .do_static_compilation(true);
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)