Vulkan fragment shader: edge black. More...
Go to the source code of this file.
Macros | |
| #define | iResolution ext.u0.zw |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (location=0) out vec4 color | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| vec3 | edgeDetection (sampler2D tex, vec2 uv) |
| Evaluates edgeDetection for this shader effect. | |
| void | main (void) |
| Executes the fragment shader entry point. | |
Variables | |
| ext | |
Vulkan fragment shader: edge black.
Definition in file edge_black.frag.
| #define iResolution ext.u0.zw |
Definition at line 17 of file edge_black.frag.
| vec3 edgeDetection | ( | sampler2D | tex, |
| vec2 | uv ) |
Evaluates edgeDetection for this shader effect.
| tex | Input value for the calculation. |
| uv | Input value for the calculation. |
Definition at line 30 of file edge_black.frag.
References edgeDetection(), and iResolution.
Referenced by edgeDetection(), and main().
| layout | ( | location | = 0 | ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file edge_black.frag.
References layout().
| void main | ( | void | ) |
Executes the fragment shader entry point.
Definition at line 59 of file edge_black.frag.
References edgeDetection(), and main().
| ext |
Definition at line 16 of file edge_black.frag.