Blender V4.5
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
8
9#ifdef GPU_SHADER
10# pragma once
11# include "gpu_glsl_cpp_stubs.hh"
12
13# include "GPU_shader_shared.hh"
14#endif
15
16#include "gpu_interface_info.hh"
18
19GPU_SHADER_INTERFACE_INFO(gpu_seq_strip_iface)
20NO_PERSPECTIVE(float2, co_interp)
21FLAT(uint, strip_id)
23
24GPU_SHADER_CREATE_INFO(gpu_shader_sequencer_strips)
25VERTEX_OUT(gpu_seq_strip_iface)
26FRAGMENT_OUT(0, float4, fragColor)
27PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
29UNIFORM_BUF(1, SeqContextDrawData, context_data)
30TYPEDEF_SOURCE("GPU_shader_shared.hh")
31VERTEX_SOURCE("gpu_shader_sequencer_strips_vert.glsl")
32FRAGMENT_SOURCE("gpu_shader_sequencer_strips_frag.glsl")
35
36GPU_SHADER_INTERFACE_INFO(gpu_seq_thumb_iface)
37NO_PERSPECTIVE(float2, pos_interp)
38NO_PERSPECTIVE(float2, texCoord_interp)
39FLAT(uint, thumb_id)
41
42GPU_SHADER_CREATE_INFO(gpu_shader_sequencer_thumbs)
43VERTEX_OUT(gpu_seq_thumb_iface)
44FRAGMENT_OUT(0, float4, fragColor)
45PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
46UNIFORM_BUF(0, SeqStripThumbData, thumb_data[GPU_SEQ_STRIP_DRAW_DATA_LEN])
47UNIFORM_BUF(1, SeqContextDrawData, context_data)
48SAMPLER(0, sampler2D, image)
49TYPEDEF_SOURCE("GPU_shader_shared.hh")
50VERTEX_SOURCE("gpu_shader_sequencer_thumbs_vert.glsl")
51FRAGMENT_SOURCE("gpu_shader_sequencer_thumbs_frag.glsl")
unsigned int uint
#define GPU_SEQ_STRIP_DRAW_DATA_LEN
VecBase< float, 4 > float4
MatBase< 4, 4 > float4x4
SamplerBase< float, 2 > sampler2D
#define TYPEDEF_SOURCE(filename)
#define VERTEX_OUT(stage_interface)
#define SAMPLER(slot, type, name)
#define UNIFORM_BUF(slot, type_name, name)
#define GPU_SHADER_INTERFACE_END()
#define FRAGMENT_SOURCE(filename)
#define PUSH_CONSTANT(type, name)
#define FLAT(type, name)
#define FRAGMENT_OUT(slot, type, name)
#define NO_PERSPECTIVE(type, name)
#define GPU_SHADER_INTERFACE_INFO(_interface)
#define GPU_SHADER_CREATE_INFO(_info)
#define VERTEX_SOURCE(filename)
#define GPU_SHADER_CREATE_END()
#define DO_STATIC_COMPILATION()