Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_3D_flat_color.desc.h')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_3D_flat_color.desc.h68
1 files changed, 34 insertions, 34 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_flat_color.desc.h b/source/blender/gpu/shaders/gpu_shader_3D_flat_color.desc.h
index 16eeeec204c..cbdf96bb7d3 100644
--- a/source/blender/gpu/shaders/gpu_shader_3D_flat_color.desc.h
+++ b/source/blender/gpu/shaders/gpu_shader_3D_flat_color.desc.h
@@ -1,39 +1,39 @@
#include "gpu_shader_descriptor.h"
-GPU_STAGE_INTERFACE_CREATE(flat_color_iface,
- {
- {VEC4, "finalColor", FLAT},
- })
+GPU_STAGE_INTERFACE_CREATE(flat_color_iface)
+{
+ {VEC4, "finalColor", FLAT},
+};
-GPU_SHADER_DESCRIPTOR(gpu_shader_3D_flat_color,
- {
- .vertex_inputs =
- {
- [0] = VERTEX_INPUT(VEC3, "pos"),
- [1] = VERTEX_INPUT(VEC4, "col"),
- },
- .vertex_out_interfaces =
- {
- [0] = STAGE_INTERFACE("", flat_color_iface),
- },
- .fragment_outputs =
- {
- [0] = FRAGMENT_OUTPUT(VEC4, "fragColor"),
- },
- .push_constants =
- {
- [1] = PUSH_CONSTANT(BOOL, "srgbTarget"),
- },
- .vertex_source = "gpu_shader_3D_flat_color_vert.glsl",
- .fragment_source = "gpu_shader_flat_color_frag.glsl",
- })
+GPU_SHADER_DESCRIPTOR(gpu_shader_3D_flat_color)
+{
+ .vertex_inputs =
+ {
+ [0] = VERTEX_INPUT(VEC3, "pos"),
+ [1] = VERTEX_INPUT(VEC4, "col"),
+ },
+ .vertex_out_interfaces =
+ {
+ [0] = STAGE_INTERFACE("", flat_color_iface),
+ },
+ .fragment_outputs =
+ {
+ [0] = FRAGMENT_OUTPUT(VEC4, "fragColor"),
+ },
+ .push_constants =
+ {
+ [1] = PUSH_CONSTANT(BOOL, "srgbTarget"),
+ },
+ .vertex_source = "gpu_shader_3D_flat_color_vert.glsl",
+ .fragment_source = "gpu_shader_flat_color_frag.glsl",
+};
-GPU_SHADER_DESCRIPTOR(gpu_shader_3D_flat_color_clipped,
- {
- .additional_descriptors =
- {
- &gpu_shader_3D_flat_color,
- &gpu_clip_planes,
- },
- })
+GPU_SHADER_DESCRIPTOR(gpu_shader_3D_flat_color_clipped)
+{
+ .additional_descriptors =
+ {
+ "gpu_shader_3D_flat_color",
+ "gpu_clip_planes",
+ },
+};