2023-08-16 00:20:26 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2022 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2022-01-17 14:45:22 +01:00
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
|
* \ingroup gpu
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "gpu_shader_create_info.hh"
|
|
|
|
|
|
|
|
|
|
GPU_SHADER_INTERFACE_INFO(flat_color_iface, "").flat(Type::VEC4, "finalColor");
|
|
|
|
|
GPU_SHADER_INTERFACE_INFO(no_perspective_color_iface, "").no_perspective(Type::VEC4, "finalColor");
|
|
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_color_iface, "").smooth(Type::VEC4, "finalColor");
|
|
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_tex_coord_interp_iface, "").smooth(Type::VEC2, "texCoord_interp");
|
|
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_radii_iface, "").smooth(Type::VEC2, "radii");
|
|
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_radii_outline_iface, "").smooth(Type::VEC4, "radii");
|
2022-01-18 13:13:23 +01:00
|
|
|
GPU_SHADER_INTERFACE_INFO(flat_color_smooth_tex_coord_interp_iface, "")
|
|
|
|
|
.flat(Type::VEC4, "finalColor")
|
|
|
|
|
.smooth(Type::VEC2, "texCoord_interp");
|
2022-10-20 16:37:07 +02:00
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_icon_interp_iface, "")
|
|
|
|
|
.smooth(Type::VEC2, "texCoord_interp")
|
|
|
|
|
.smooth(Type::VEC2, "mask_coord_interp");
|