Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/infos/gpu_shader_2D_nodelink_info.hh
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2022 Blender Foundation. All rights reserved. */ | * Copyright 2022 Blender Foundation. All rights reserved. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup gpu | * \ingroup gpu | ||||
| */ | */ | ||||
| #include "gpu_shader_create_info.hh" | #include "gpu_shader_create_info.hh" | ||||
| GPU_SHADER_INTERFACE_INFO(nodelink_iface, "") | GPU_SHADER_INTERFACE_INFO(nodelink_iface, "") | ||||
| .smooth(Type::VEC4, "finalColor") | .smooth(Type::VEC4, "finalColor") | ||||
| .smooth(Type::FLOAT, "colorGradient") | .smooth(Type::FLOAT, "colorGradient") | ||||
| .smooth(Type::FLOAT, "lineU") | .smooth(Type::FLOAT, "lineU") | ||||
| .flat(Type::FLOAT, "lineLength") | .flat(Type::FLOAT, "lineLength") | ||||
| .flat(Type::FLOAT, "lineThickness") | |||||
| .flat(Type::FLOAT, "dashFactor") | .flat(Type::FLOAT, "dashFactor") | ||||
| .flat(Type::FLOAT, "dashAlpha") | .flat(Type::FLOAT, "dashAlpha") | ||||
| .flat(Type::INT, "isMainLine"); | .flat(Type::INT, "isMainLine"); | ||||
| GPU_SHADER_CREATE_INFO(gpu_shader_2D_nodelink) | GPU_SHADER_CREATE_INFO(gpu_shader_2D_nodelink) | ||||
| .vertex_in(0, Type::VEC2, "uv") | .vertex_in(0, Type::VEC2, "uv") | ||||
| .vertex_in(1, Type::VEC2, "pos") | .vertex_in(1, Type::VEC2, "pos") | ||||
| .vertex_in(2, Type::VEC2, "expand") | .vertex_in(2, Type::VEC2, "expand") | ||||
| Show All 34 Lines | |||||