This is to help for future resource declaration using macros. Rel #137261 Pull Request: https://projects.blender.org/blender/blender/pulls/137367
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
/* SPDX-FileCopyrightText: 2022 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "gpu_shader_create_info.hh"
|
|
|
|
GPU_SHADER_INTERFACE_INFO(flat_color_iface)
|
|
FLAT(float4, finalColor)
|
|
GPU_SHADER_INTERFACE_END()
|
|
|
|
GPU_SHADER_INTERFACE_INFO(no_perspective_color_iface)
|
|
NO_PERSPECTIVE(float4, finalColor)
|
|
GPU_SHADER_INTERFACE_END()
|
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_color_iface)
|
|
SMOOTH(float4, finalColor)
|
|
GPU_SHADER_INTERFACE_END()
|
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_tex_coord_interp_iface)
|
|
SMOOTH(float2, texCoord_interp)
|
|
GPU_SHADER_INTERFACE_END()
|
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_radii_iface)
|
|
SMOOTH(float2, radii)
|
|
GPU_SHADER_INTERFACE_END()
|
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_radii_outline_iface)
|
|
SMOOTH(float4, radii)
|
|
GPU_SHADER_INTERFACE_END()
|
|
|
|
GPU_SHADER_INTERFACE_INFO(flat_color_smooth_tex_coord_interp_iface)
|
|
FLAT(float4, finalColor)
|
|
SMOOTH(float2, texCoord_interp)
|
|
GPU_SHADER_INTERFACE_END()
|
|
|
|
GPU_SHADER_INTERFACE_INFO(smooth_icon_interp_iface)
|
|
SMOOTH(float2, texCoord_interp)
|
|
SMOOTH(float2, mask_coord_interp)
|
|
GPU_SHADER_INTERFACE_END()
|