Blender V5.0
engine_image_infos.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
6
7GPU_SHADER_INTERFACE_INFO(image_engine_color_iface)
8SMOOTH(float2, uv_screen)
10
11GPU_SHADER_CREATE_INFO(image_engine_color_shader)
13VERTEX_OUT(image_engine_color_iface)
14FRAGMENT_OUT(0, float4, out_color)
15PUSH_CONSTANT(float4, shuffle)
16PUSH_CONSTANT(float2, far_near_distances)
17PUSH_CONSTANT(int2, offset)
18PUSH_CONSTANT(int, draw_flags)
19PUSH_CONSTANT(bool, is_image_premultiplied)
20SAMPLER(0, sampler2D, image_tx)
21SAMPLER(1, sampler2DDepth, depth_tx)
22VERTEX_SOURCE("image_engine_color_vert.glsl")
23FRAGMENT_SOURCE("image_engine_color_frag.glsl")
24ADDITIONAL_INFO(draw_view)
25ADDITIONAL_INFO(draw_modelmat)
28
29GPU_SHADER_INTERFACE_INFO(image_engine_depth_iface)
30SMOOTH(float2, uv_image)
32
33GPU_SHADER_CREATE_INFO(image_engine_depth_shader)
35VERTEX_IN(1, float2, uv)
36VERTEX_OUT(image_engine_depth_iface)
37PUSH_CONSTANT(float4, min_max_uv)
38VERTEX_SOURCE("image_engine_depth_vert.glsl")
39FRAGMENT_SOURCE("image_engine_depth_frag.glsl")
40ADDITIONAL_INFO(draw_view)
41ADDITIONAL_INFO(draw_modelmat)
uint pos
#define GPU_SHADER_INTERFACE_END()
#define GPU_SHADER_INTERFACE_INFO(_interface)
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define VERTEX_OUT(stage_interface)
#define SMOOTH(type, name)
#define SAMPLER(slot, type, name)
#define FRAGMENT_SOURCE(filename)
#define ADDITIONAL_INFO(info_name)
#define PUSH_CONSTANT(type, name)
#define FRAGMENT_OUT(slot, type, name)
#define VERTEX_SOURCE(filename)
#define VERTEX_IN(slot, type, name)
#define DO_STATIC_COMPILATION()
#define DEPTH_WRITE(value)
SamplerBase< float, 2, false, false, false, true > sampler2DDepth
SamplerBase< float, 2 > sampler2D