diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-01-19 13:48:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-01-19 13:59:57 +0300 |
commit | 8a23d91a50923c62be5ed4ce38955dfc60de6e70 (patch) | |
tree | d12eccac344796d0162d5941a643c5b2ff89a10d /source/blender/gpu/shaders | |
parent | 952a4fa4561986da467c16a04b1b23530df26b8d (diff) |
GPUShaderCreateInfo: Rework geometry shader layout support
This merge the description into one struct only that can be more easily
copied during `finalize()`.
The in and out layout parameters are better named and extended with the
invocation count (with fallback support)
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r-- | source/blender/gpu/shaders/infos/gpu_shader_gpencil_stroke_info.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/infos/gpu_shader_gpencil_stroke_info.hh b/source/blender/gpu/shaders/infos/gpu_shader_gpencil_stroke_info.hh index 5c8410baf04..c337c399f59 100644 --- a/source/blender/gpu/shaders/infos/gpu_shader_gpencil_stroke_info.hh +++ b/source/blender/gpu/shaders/infos/gpu_shader_gpencil_stroke_info.hh @@ -35,7 +35,7 @@ GPU_SHADER_CREATE_INFO(gpu_shader_gpencil_stroke) .vertex_in(1, Type::VEC3, "pos") .vertex_in(2, Type::FLOAT, "thickness") .vertex_out(gpencil_stroke_vert_iface) - .geometry_layout(InputLayout::LINES_ADJACENCY, OutputLayout::TRIANGLE_STRIP, 13) + .geometry_layout(PrimitiveIn::LINES_ADJACENCY, PrimitiveOut::TRIANGLE_STRIP, 13) .geometry_out(gpencil_stroke_geom_iface) .fragment_out(0, Type::VEC4, "fragColor") |