Blender V5.0
gpu_shader_3D_image_infos.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#ifdef GPU_SHADER
10# pragma once
11# include "gpu_shader_compat.hh"
12
13# include "GPU_shader_shared.hh"
14
16#endif
17
20
21GPU_SHADER_CREATE_INFO(gpu_shader_3D_image_common)
23VERTEX_IN(1, float2, texCoord)
24VERTEX_OUT(smooth_tex_coord_interp_iface)
25FRAGMENT_OUT(0, float4, fragColor)
26PUSH_CONSTANT(float4x4, ModelViewProjectionMatrix)
27SAMPLER(0, sampler2D, image)
28VERTEX_SOURCE("gpu_shader_3D_image_vert.glsl")
29ADDITIONAL_INFO(gpu_srgb_to_framebuffer_space)
31
32GPU_SHADER_CREATE_INFO(gpu_shader_3D_image)
33ADDITIONAL_INFO(gpu_shader_3D_image_common)
34COMPILATION_CONSTANT(bool, is_scene_linear_image, false)
35FRAGMENT_SOURCE("gpu_shader_image_frag.glsl")
38
39GPU_SHADER_CREATE_INFO(gpu_shader_3D_image_scene_linear)
40ADDITIONAL_INFO(gpu_shader_3D_image_common)
41ADDITIONAL_INFO(gpu_scene_linear_to_rec709_space)
42COMPILATION_CONSTANT(bool, is_scene_linear_image, true)
43FRAGMENT_SOURCE("gpu_shader_image_frag.glsl")
46
47GPU_SHADER_CREATE_INFO(gpu_shader_3D_image_color)
48ADDITIONAL_INFO(gpu_shader_3D_image_common)
49COMPILATION_CONSTANT(bool, is_scene_linear_image, false)
51FRAGMENT_SOURCE("gpu_shader_image_color_frag.glsl")
54
55GPU_SHADER_CREATE_INFO(gpu_shader_3D_image_color_scene_linear)
56ADDITIONAL_INFO(gpu_shader_3D_image_common)
57ADDITIONAL_INFO(gpu_scene_linear_to_rec709_space)
58COMPILATION_CONSTANT(bool, is_scene_linear_image, true)
60FRAGMENT_SOURCE("gpu_shader_image_color_frag.glsl")
return true
uint pos
#define GPU_SHADER_CREATE_INFO(_info)
#define GPU_SHADER_CREATE_END()
#define VERTEX_OUT(stage_interface)
#define SAMPLER(slot, type, name)
#define COMPILATION_CONSTANT(type, name, value)
#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()
MatBase< 4, 4 > float4x4
SamplerBase< float, 2 > sampler2D