Vulkan compute shader: acidcam 005 temporal blend cache. More...
Go to the source code of this file.
Macros | |
| #define | alpha ext.u0.x |
| #define | history_head int(ext.u3.x) |
| #define | iFrame int(ext.u2.x) |
| #define | SIZE 8 |
| #define | USE_HISTORY_TEXTURE_ARRAY 1 |
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 | effectBlockSize () |
| Evaluates effectBlockSize for this shader effect. | |
| int | effectDirection () |
| Evaluates effectDirection for this shader effect. | |
| int | effectHistoryIndex () |
| Evaluates effectHistoryIndex for this shader effect. | |
| vec3 | sampleHistory (int index, ivec2 p, ivec2 size) |
| Evaluates sampleHistory for this shader effect. | |
| vec3 | temporalBlend (ivec2 p, ivec2 size) |
| Evaluates temporalBlend for this shader effect. | |
| void | main () |
| Executes the compute shader entry point. | |
Variables | |
| ext | |
Vulkan compute shader: acidcam 005 temporal blend cache.
Definition in file acidcam_005_temporal_blend_cache.comp.
| #define alpha ext.u0.x |
Definition at line 17 of file acidcam_005_temporal_blend_cache.comp.
| #define history_head int(ext.u3.x) |
Definition at line 18 of file acidcam_005_temporal_blend_cache.comp.
| #define iFrame int(ext.u2.x) |
Definition at line 19 of file acidcam_005_temporal_blend_cache.comp.
| #define SIZE 8 |
Definition at line 75 of file acidcam_005_temporal_blend_cache.comp.
| #define USE_HISTORY_TEXTURE_ARRAY 1 |
Definition at line 79 of file acidcam_005_temporal_blend_cache.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 34 of file acidcam_005_temporal_blend_cache.comp.
References clampPos().
| int effectBlockSize | ( | ) |
Evaluates effectBlockSize for this shader effect.
Definition at line 62 of file acidcam_005_temporal_blend_cache.comp.
References alpha, and effectBlockSize().
| int effectDirection | ( | ) |
Evaluates effectDirection for this shader effect.
Definition at line 70 of file acidcam_005_temporal_blend_cache.comp.
References effectDirection(), and iFrame.
Referenced by blockShuffle(), brightnessContrast(), dynamicKaleidoscope(), effectDirection(), main(), scanlineWarp(), temporalBlend(), wave(), and xorGrid().
| int effectHistoryIndex | ( | ) |
Evaluates effectHistoryIndex for this shader effect.
Definition at line 93 of file acidcam_005_temporal_blend_cache.comp.
References effectHistoryIndex(), iFrame, and SIZE.
| 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_005_temporal_blend_cache.comp.
References layout().
| layout | ( | set | = 0, |
| binding | = 5, | ||
| rgba8 | ) |
References layout().
| void main | ( | void | ) |
Executes the compute shader entry point.
Definition at line 132 of file acidcam_005_temporal_blend_cache.comp.
References main(), and temporalBlend().
| 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 44 of file acidcam_005_temporal_blend_cache.comp.
References clampPos(), and pixelUv().
| vec3 sampleHistory | ( | int | index, |
| ivec2 | p, | ||
| ivec2 | size ) |
Evaluates sampleHistory for this shader effect.
| index | Input value for the calculation. |
| p | Input value for the calculation. |
| size | Input value for the calculation. |
Definition at line 104 of file acidcam_005_temporal_blend_cache.comp.
References history_head, pixelUv(), sampleHistory(), and SIZE.
| 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 54 of file acidcam_005_temporal_blend_cache.comp.
References pixelUv(), and sampleSource().
| vec3 temporalBlend | ( | ivec2 | p, |
| ivec2 | size ) |
Evaluates temporalBlend for this shader effect.
| p | Input value for the calculation. |
| size | Input value for the calculation. |
Definition at line 121 of file acidcam_005_temporal_blend_cache.comp.
References effectBlockSize(), effectDirection(), effectHistoryIndex(), sampleHistory(), sampleSource(), and temporalBlend().
Referenced by main(), and temporalBlend().
| ext |
Definition at line 16 of file acidcam_005_temporal_blend_cache.comp.