Files
test2/source/blender/draw/engines/eevee/shaders/eevee_film_comp.glsl
Clément Foucault fe213f80a4 GPU: Shader: Make info files generated
This is the first step of moving the create infos
back inside shader sources.

All info files are now treated as source files.
However, they are not considered in the include tree
yet. This will come in another following PR.

Each shader source file now generate a `.info` file
containing only the create info declarations.

This renames all info files so that they do not
conflict with their previous versions that were
copied (non-generated).

Pull Request: https://projects.blender.org/blender/blender/pulls/146676
2025-09-25 10:57:02 +02:00

24 lines
481 B
GLSL

/* SPDX-FileCopyrightText: 2022 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#include "infos/eevee_film_infos.hh"
COMPUTE_SHADER_CREATE_INFO(eevee_film_comp)
#include "eevee_film_lib.glsl"
void main()
{
int2 texel_film = int2(gl_GlobalInvocationID.xy);
/* Not used. */
float4 out_color;
float out_depth;
if (any(greaterThanEqual(texel_film, uniform_buf.film.extent))) {
return;
}
film_process_data(texel_film, out_color, out_depth);
}