Skip to content

Commit 78827ee

Browse files
committed
shaders: disable nodes needing bool
1 parent f1d182a commit 78827ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

node-graph/graster-nodes/src/adjustments.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn luminance<T: Adjust<Color>>(
6767
input
6868
}
6969

70-
#[node_macro::node(category("Raster"), shader_node(PerPixelAdjust))]
70+
#[node_macro::node(category("Raster"), cfg(feature = "std"))]
7171
fn gamma_correction<T: Adjust<Color>>(
7272
_: impl Ctx,
7373
#[implementations(
@@ -138,7 +138,7 @@ fn make_opaque<T: Adjust<Color>>(
138138
//
139139
// Some further analysis available at:
140140
// https://geraldbakker.nl/psnumbers/brightness-contrast.html
141-
#[node_macro::node(name("Brightness/Contrast"), category("Raster: Adjustment"), properties("brightness_contrast_properties"), shader_node(PerPixelAdjust))]
141+
#[node_macro::node(name("Brightness/Contrast"), category("Raster: Adjustment"), properties("brightness_contrast_properties"), cfg(feature = "std"))]
142142
fn brightness_contrast<T: Adjust<Color>>(
143143
_: impl Ctx,
144144
#[implementations(
@@ -639,7 +639,7 @@ pub enum DomainWarpType {
639639
// Aims for interoperable compatibility with:
640640
// https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#:~:text=%27mixr%27%20%3D%20Channel%20Mixer
641641
// https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#:~:text=Lab%20color%20only-,Channel%20Mixer,-Key%20is%20%27mixr
642-
#[node_macro::node(category("Raster: Adjustment"), properties("channel_mixer_properties"), shader_node(PerPixelAdjust))]
642+
#[node_macro::node(category("Raster: Adjustment"), properties("channel_mixer_properties"), cfg(feature = "std"))]
643643
fn channel_mixer<T: Adjust<Color>>(
644644
_: impl Ctx,
645645
#[implementations(
@@ -768,7 +768,7 @@ pub enum SelectiveColorChoice {
768768
//
769769
// Algorithm based on:
770770
// https://blog.pkh.me/p/22-understanding-selective-coloring-in-adobe-photoshop.html
771-
#[node_macro::node(category("Raster: Adjustment"), properties("selective_color_properties"), shader_node(PerPixelAdjust))]
771+
#[node_macro::node(category("Raster: Adjustment"), properties("selective_color_properties"), cfg(feature = "std"))]
772772
fn selective_color<T: Adjust<Color>>(
773773
_: impl Ctx,
774774
#[implementations(

0 commit comments

Comments
 (0)