GPU: Make polylines vertex shader use C++ shader compilation

_No response_

Pull Request: https://projects.blender.org/blender/blender/pulls/138411
This commit is contained in:
Clément Foucault
2025-05-05 00:44:34 +02:00
committed by Clément Foucault
parent 223aca7703
commit c0f191f580
2 changed files with 5 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ set(SRC_GLSL_VERT
gpu_shader_2D_point_uniform_size_aa_vert.glsl
gpu_shader_2D_point_uniform_size_outline_aa_vert.glsl
gpu_shader_2D_point_varying_size_varying_color_vert.glsl
gpu_shader_3D_polyline_vert.glsl
gpu_shader_2D_vert.glsl
gpu_shader_2D_widget_base_vert.glsl
gpu_shader_2D_widget_shadow_vert.glsl

View File

@@ -2,11 +2,15 @@
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#include "infos/gpu_shader_3D_polyline_info.hh"
#include "gpu_shader_attribute_load_lib.glsl"
#include "gpu_shader_index_load_lib.glsl"
#include "gpu_shader_math_base_lib.glsl"
#include "gpu_shader_utildefines_lib.glsl"
VERTEX_SHADER_CREATE_INFO(gpu_shader_3D_polyline_flat_color)
struct VertIn {
float3 ls_P;
float4 final_color;