Differential D16906 Diff 59033 source/blender/gpu/shaders/infos/gpu_shader_2D_image_multi_rect_color_info.hh
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/infos/gpu_shader_2D_image_multi_rect_color_info.hh
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| #include "gpu_interface_info.hh" | #include "gpu_interface_info.hh" | ||||
| #include "gpu_shader_create_info.hh" | #include "gpu_shader_create_info.hh" | ||||
| GPU_SHADER_CREATE_INFO(gpu_shader_2D_image_multi_rect_color) | GPU_SHADER_CREATE_INFO(gpu_shader_2D_image_multi_rect_color) | ||||
| .define("USE_SAMPLER_LOD_BIAS") | |||||
| .vertex_in(0, Type::VEC2, "pos") | .vertex_in(0, Type::VEC2, "pos") | ||||
| .vertex_out(flat_color_smooth_tex_coord_interp_iface) | .vertex_out(flat_color_smooth_tex_coord_interp_iface) | ||||
| .fragment_out(0, Type::VEC4, "fragColor") | .fragment_out(0, Type::VEC4, "fragColor") | ||||
| .uniform_buf(0, "MultiRectCallData", "multi_rect_data") | .uniform_buf(0, "MultiRectCallData", "multi_rect_data") | ||||
| .sampler(0, ImageType::FLOAT_2D, "image") | .sampler(0, ImageType::FLOAT_2D, "image") | ||||
| .typedef_source("GPU_shader_shared.h") | .typedef_source("GPU_shader_shared.h") | ||||
| .vertex_source("gpu_shader_2D_image_multi_rect_vert.glsl") | .vertex_source("gpu_shader_2D_image_multi_rect_vert.glsl") | ||||
| .fragment_source("gpu_shader_image_varying_color_frag.glsl") | .fragment_source("gpu_shader_image_varying_color_frag.glsl") | ||||
| .do_static_compilation(true); | .do_static_compilation(true); | ||||