Blender V5.0
depth_2d_update_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
10
11GPU_SHADER_INTERFACE_INFO(depth_2d_update_iface).smooth(Type::float2_t, "texCoord_interp");
12
13GPU_SHADER_CREATE_INFO(depth_2d_update_info_base)
14 .vertex_in(0, Type::float2_t, "pos")
15 .vertex_out(depth_2d_update_iface)
16 .fragment_out(0, Type::float4_t, "fragColor")
17 .push_constant(Type::float2_t, "extent")
18 .push_constant(Type::float2_t, "offset")
19 .push_constant(Type::float2_t, "size")
20 .push_constant(Type::int_t, "mip")
21 .depth_write(DepthWrite::ANY)
22 .vertex_source("depth_2d_update_vert.glsl");
23
24GPU_SHADER_CREATE_INFO(depth_2d_update_float)
25 .metal_backend_only(true)
26 .fragment_source("depth_2d_update_float_frag.glsl")
27 .sampler(0, ImageType::Float2D, "source_data", Frequency::PASS)
28 .additional_info("depth_2d_update_info_base")
29 .do_static_compilation(true)
30 .depth_write(DepthWrite::ANY);
31
32GPU_SHADER_CREATE_INFO(depth_2d_update_int24)
33 .metal_backend_only(true)
34 .fragment_source("depth_2d_update_int24_frag.glsl")
35 .additional_info("depth_2d_update_info_base")
36 .sampler(0, ImageType::Int2D, "source_data", Frequency::PASS)
37 .do_static_compilation(true)
38 .depth_write(DepthWrite::ANY);
39
40GPU_SHADER_CREATE_INFO(depth_2d_update_int32)
41 .metal_backend_only(true)
42 .fragment_source("depth_2d_update_int32_frag.glsl")
43 .additional_info("depth_2d_update_info_base")
44 .sampler(0, ImageType::Int2D, "source_data", Frequency::PASS)
45 .do_static_compilation(true)
46 .depth_write(DepthWrite::ANY);
#define GPU_SHADER_INTERFACE_INFO(_interface)
#define GPU_SHADER_CREATE_INFO(_info)