@@ -52,6 +52,7 @@ fn luminance<T: Adjust<Color>>(
5252 Table <GradientStops >,
5353 GradientStops ,
5454 ) ]
55+ #[ gpu_image]
5556 mut input : T ,
5657 luminance_calc : LuminanceCalculation ,
5758) -> T {
@@ -77,6 +78,7 @@ fn gamma_correction<T: Adjust<Color>>(
7778 Table <GradientStops >,
7879 GradientStops ,
7980 ) ]
81+ #[ gpu_image]
8082 mut input : T ,
8183 #[ default( 2.2 ) ]
8284 #[ range( ( 0.01 , 10. ) ) ]
@@ -98,6 +100,7 @@ fn extract_channel<T: Adjust<Color>>(
98100 Table <GradientStops >,
99101 GradientStops ,
100102 ) ]
103+ #[ gpu_image]
101104 mut input : T ,
102105 channel : RedGreenBlueAlpha ,
103106) -> T {
@@ -122,6 +125,7 @@ fn make_opaque<T: Adjust<Color>>(
122125 Table <GradientStops >,
123126 GradientStops ,
124127 ) ]
128+ #[ gpu_image]
125129 mut input : T ,
126130) -> T {
127131 input. adjust ( |color| {
@@ -148,6 +152,7 @@ fn brightness_contrast<T: Adjust<Color>>(
148152 Table <GradientStops >,
149153 GradientStops ,
150154 ) ]
155+ #[ gpu_image]
151156 mut input : T ,
152157 brightness : SignedPercentageF32 ,
153158 contrast : SignedPercentageF32 ,
@@ -238,6 +243,7 @@ fn levels<T: Adjust<Color>>(
238243 Table <GradientStops >,
239244 GradientStops ,
240245 ) ]
246+ #[ gpu_image]
241247 mut image : T ,
242248 #[ default( 0. ) ] shadows : PercentageF32 ,
243249 #[ default( 50. ) ] midtones : PercentageF32 ,
@@ -306,6 +312,7 @@ fn black_and_white<T: Adjust<Color>>(
306312 Table <GradientStops >,
307313 GradientStops ,
308314 ) ]
315+ #[ gpu_image]
309316 mut image : T ,
310317 #[ default( Color :: BLACK ) ] tint : Color ,
311318 #[ default( 40. ) ]
@@ -379,6 +386,7 @@ fn hue_saturation<T: Adjust<Color>>(
379386 Table <GradientStops >,
380387 GradientStops ,
381388 ) ]
389+ #[ gpu_image]
382390 mut input : T ,
383391 hue_shift : AngleF32 ,
384392 saturation_shift : SignedPercentageF32 ,
@@ -414,6 +422,7 @@ fn invert<T: Adjust<Color>>(
414422 Table <GradientStops >,
415423 GradientStops ,
416424 ) ]
425+ #[ gpu_image]
417426 mut input : T ,
418427) -> T {
419428 input. adjust ( |color| {
@@ -437,6 +446,7 @@ fn threshold<T: Adjust<Color>>(
437446 Table <GradientStops >,
438447 GradientStops ,
439448 ) ]
449+ #[ gpu_image]
440450 mut image : T ,
441451 #[ default( 50. ) ] min_luminance : PercentageF32 ,
442452 #[ default( 100. ) ] max_luminance : PercentageF32 ,
@@ -483,6 +493,7 @@ fn vibrance<T: Adjust<Color>>(
483493 Table <GradientStops >,
484494 GradientStops ,
485495 ) ]
496+ #[ gpu_image]
486497 mut image : T ,
487498 vibrance : SignedPercentageF32 ,
488499) -> T {
@@ -649,6 +660,7 @@ fn channel_mixer<T: Adjust<Color>>(
649660 Table <GradientStops >,
650661 GradientStops ,
651662 ) ]
663+ #[ gpu_image]
652664 mut image : T ,
653665
654666 monochrome : bool ,
@@ -778,6 +790,7 @@ fn selective_color<T: Adjust<Color>>(
778790 Table <GradientStops >,
779791 GradientStops ,
780792 ) ]
793+ #[ gpu_image]
781794 mut image : T ,
782795
783796 mode : RelativeAbsolute ,
@@ -921,6 +934,7 @@ fn posterize<T: Adjust<Color>>(
921934 Table <GradientStops >,
922935 GradientStops ,
923936 ) ]
937+ #[ gpu_image]
924938 mut input : T ,
925939 #[ default( 4 ) ]
926940 #[ hard_min( 2. ) ]
@@ -955,6 +969,7 @@ fn exposure<T: Adjust<Color>>(
955969 Table <GradientStops >,
956970 GradientStops ,
957971 ) ]
972+ #[ gpu_image]
958973 mut input : T ,
959974 exposure : f32 ,
960975 offset : f32 ,
0 commit comments