Vulkan compute shader: acidcam 011 dynamic kaleidoscope. More...
Go to the source code of this file.
Macros | |
| #define | alpha ext.u0.x |
| #define | iFrame int(ext.u2.x) |
Functions | |
| layout (set=0, binding=1, std140) uniform SpriteExtended | |
| layout (local_size_x=16, local_size_y=16) in | |
| layout (set=0, binding=5, rgba8) writeonly uniform image2D outputImage | |
| layout (set=0, binding=0) uniform sampler2D samp | |
| ivec2 | clampPos (ivec2 p, ivec2 size) |
| Evaluates clampPos for this shader effect. | |
| vec2 | pixelUv (ivec2 p, ivec2 size) |
| Evaluates pixelUv for this shader effect. | |
| vec3 | sampleSource (ivec2 p, ivec2 size) |
| Evaluates sampleSource for this shader effect. | |
| int | effectDirection () |
| Evaluates effectDirection for this shader effect. | |
| vec3 | hueRotate (vec3 color, float angle) |
| Evaluates hueRotate for this shader effect. | |
| vec3 | kaleidoscope (ivec2 p, ivec2 size, int segments) |
| Evaluates kaleidoscope for this shader effect. | |
| vec3 | dynamicKaleidoscope (ivec2 p, ivec2 size) |
| Evaluates dynamicKaleidoscope for this shader effect. | |
| void | main () |
| Executes the compute shader entry point. | |
Variables | |
| ext | |
| const float | TAU = 6.28318530718 |
Vulkan compute shader: acidcam 011 dynamic kaleidoscope.
Definition in file acidcam_011_dynamic_kaleidoscope.comp.
| #define alpha ext.u0.x |
Definition at line 17 of file acidcam_011_dynamic_kaleidoscope.comp.
| #define iFrame int(ext.u2.x) |
Definition at line 18 of file acidcam_011_dynamic_kaleidoscope.comp.
| ivec2 clampPos | ( | ivec2 | p, |
| ivec2 | size ) |
Evaluates clampPos for this shader effect.
| p | Input value for the calculation. |
| size | Input value for the calculation. |
Definition at line 35 of file acidcam_011_dynamic_kaleidoscope.comp.
References clampPos().
| vec3 dynamicKaleidoscope | ( | ivec2 | p, |
| ivec2 | size ) |
Evaluates dynamicKaleidoscope for this shader effect.
| p | Input value for the calculation. |
| size | Input value for the calculation. |
Definition at line 106 of file acidcam_011_dynamic_kaleidoscope.comp.
References alpha, dynamicKaleidoscope(), effectDirection(), hueRotate(), iFrame, and kaleidoscope().
Referenced by dynamicKaleidoscope(), and main().
| int effectDirection | ( | ) |
Evaluates effectDirection for this shader effect.
Definition at line 63 of file acidcam_011_dynamic_kaleidoscope.comp.
References effectDirection(), and iFrame.
| vec3 hueRotate | ( | vec3 | color, |
| float | angle ) |
Evaluates hueRotate for this shader effect.
| color | Input value for the calculation. |
| angle | Input value for the calculation. |
Definition at line 73 of file acidcam_011_dynamic_kaleidoscope.comp.
References hueRotate().
Referenced by dynamicKaleidoscope(), hueRotate(), hueRotate(), hueRotate(), main(), and main().
| vec3 kaleidoscope | ( | ivec2 | p, |
| ivec2 | size, | ||
| int | segments ) |
Evaluates kaleidoscope for this shader effect.
| p | Input value for the calculation. |
| size | Input value for the calculation. |
| segments | Input value for the calculation. |
Definition at line 89 of file acidcam_011_dynamic_kaleidoscope.comp.
References kaleidoscope(), sampleSource(), and TAU.
| layout | ( | local_size_x | = 16, |
| local_size_y | = 16 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 0 ) |
References layout().
| layout | ( | set | = 0, |
| binding | = 1, | ||
| std140 | ) |
Definition at line 7 of file acidcam_011_dynamic_kaleidoscope.comp.
References layout().
| layout | ( | set | = 0, |
| binding | = 5, | ||
| rgba8 | ) |
References layout().
| void main | ( | void | ) |
Executes the compute shader entry point.
Definition at line 116 of file acidcam_011_dynamic_kaleidoscope.comp.
References dynamicKaleidoscope(), and main().
| vec2 pixelUv | ( | ivec2 | p, |
| ivec2 | size ) |
Evaluates pixelUv for this shader effect.
| p | Input value for the calculation. |
| size | Input value for the calculation. |
Definition at line 45 of file acidcam_011_dynamic_kaleidoscope.comp.
References clampPos(), and pixelUv().
| vec3 sampleSource | ( | ivec2 | p, |
| ivec2 | size ) |
Evaluates sampleSource for this shader effect.
| p | Input value for the calculation. |
| size | Input value for the calculation. |
Definition at line 55 of file acidcam_011_dynamic_kaleidoscope.comp.
References pixelUv(), and sampleSource().
| ext |
Definition at line 16 of file acidcam_011_dynamic_kaleidoscope.comp.
| const float TAU = 6.28318530718 |
Definition at line 27 of file acidcam_011_dynamic_kaleidoscope.comp.