Blender V5.0
gpu_shader_fullscreen_blit_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
8
9#pragma once
10
12
13GPU_SHADER_INTERFACE_INFO(fullscreen_blit_iface).smooth(Type::float2_t, "screen_uv");
14
15GPU_SHADER_CREATE_INFO(fullscreen_blit)
16 .vertex_in(0, Type::float2_t, "pos")
17 .vertex_out(fullscreen_blit_iface)
18 .fragment_out(0, Type::float4_t, "fragColor")
19 .push_constant(Type::float2_t, "fullscreen")
20 .push_constant(Type::float2_t, "size")
21 .push_constant(Type::float2_t, "dst_offset")
22 .push_constant(Type::float2_t, "src_offset")
23 .push_constant(Type::int_t, "mip")
24 .sampler(0, ImageType::Float2D, "imageTexture", Frequency::PASS)
25 .vertex_source("gpu_shader_fullscreen_blit_vert.glsl")
26 .fragment_source("gpu_shader_fullscreen_blit_frag.glsl")
27 .do_static_compilation(true);
#define GPU_SHADER_INTERFACE_INFO(_interface)
#define GPU_SHADER_CREATE_INFO(_info)