Blender V5.3
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
9#ifdef GPU_SHADER
10# pragma once
11#endif
12
14
15GPU_SHADER_INTERFACE_INFO(depth_2d_update_iface)
16SMOOTH(float2, texCoord_interp)
18
19GPU_SHADER_CREATE_INFO(depth_2d_update_info_base)
20VERTEX_IN(0, float2, pos)
21VERTEX_OUT(depth_2d_update_iface)
22FRAGMENT_OUT(0, float4, fragColor)
23PUSH_CONSTANT(float2, extent)
24PUSH_CONSTANT(float2, offset)
26PUSH_CONSTANT(int, mip)
27DEPTH_WRITE(DepthWrite::ANY)
28VERTEX_SOURCE("depth_2d_update_vert.glsl");
30
31GPU_SHADER_CREATE_INFO(depth_2d_update_float)
33FRAGMENT_SOURCE("depth_2d_update_float_frag.glsl")
34SAMPLER(0, sampler2D, source_data)
35ADDITIONAL_INFO(depth_2d_update_info_base)
37DEPTH_WRITE(DepthWrite::ANY);
39
40GPU_SHADER_CREATE_INFO(depth_2d_update_int24)
42FRAGMENT_SOURCE("depth_2d_update_int24_frag.glsl")
43ADDITIONAL_INFO(depth_2d_update_info_base)
44SAMPLER(0, isampler2D, source_data)
46DEPTH_WRITE(DepthWrite::ANY);
48
49GPU_SHADER_CREATE_INFO(depth_2d_update_int32)
51FRAGMENT_SOURCE("depth_2d_update_int32_frag.glsl")
52ADDITIONAL_INFO(depth_2d_update_info_base)
53SAMPLER(0, isampler2D, source_data)
55DEPTH_WRITE(DepthWrite::ANY);
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
#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 METAL_BACKEND_ONLY()
#define VERTEX_SOURCE(filename)
#define VERTEX_IN(slot, type, name)
#define DO_STATIC_COMPILATION()
#define DEPTH_WRITE(value)
SamplerBase< int, 2 > isampler2D
SamplerBase< float, 2 > sampler2D