Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 2,745 Lines • ▼ Show 20 Lines | |||||
| static void node_composit_buts_denoise(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_denoise(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| #ifndef WITH_OPENIMAGEDENOISE | #ifndef WITH_OPENIMAGEDENOISE | ||||
| uiItemL(layout, IFACE_("Disabled, built without OpenImageDenoise"), ICON_ERROR); | uiItemL(layout, IFACE_("Disabled, built without OpenImageDenoise"), ICON_ERROR); | ||||
| #else | #else | ||||
| /* Always supported through Accelerate framework BNNS on macOS. */ | /* Always supported through Accelerate framework BNNS on macOS. */ | ||||
| # ifndef __APPLE__ | # ifndef __APPLE__ | ||||
| if (!BLI_cpu_support_sse41()) | if (!BLI_cpu_support_sse41()) { | ||||
| # endif | |||||
| { | |||||
| uiItemL(layout, IFACE_("Disabled, CPU with SSE4.1 is required"), ICON_ERROR); | uiItemL(layout, IFACE_("Disabled, CPU with SSE4.1 is required"), ICON_ERROR); | ||||
| } | } | ||||
| #endif | # endif | ||||
| #endif | |||||
| uiItemR(layout, ptr, "use_hdr", DEFAULT_FLAGS, NULL, ICON_NONE); | uiItemR(layout, ptr, "use_hdr", DEFAULT_FLAGS, NULL, ICON_NONE); | ||||
| } | } | ||||
| /* only once called */ | /* only once called */ | ||||
| static void node_composit_set_butfunc(bNodeType *ntype) | static void node_composit_set_butfunc(bNodeType *ntype) | ||||
| { | { | ||||
| switch (ntype->type) { | switch (ntype->type) { | ||||
| ▲ Show 20 Lines • Show All 1,374 Lines • Show Last 20 Lines | |||||