diff --git a/Makefile b/Makefile index bbc8780..76af4e9 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: maldavid +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2022/10/04 16:43:41 by maldavid #+# #+# # -# Updated: 2024/04/23 20:20:33 by kiroussa ### ########.fr # +# Updated: 2024/04/23 20:32:32 by kiroussa ### ########.fr # # # # **************************************************************************** # @@ -101,9 +101,6 @@ $(NAME): $(OBJS) @printf "$(_BOLD)$(NAME)$(_RESET) compiled $(_GREEN)$(_BOLD)successfully$(_RESET)\n" _printbuildinfos: - @printf "$(_RED)$(_BOLD)Warning: $(_RESET)MLX is being compiled in $(MODE) mode.\n" - @printf "This activates $(_BOLD)Vulkan's validation layers$(_RESET) and $(_BOLD)MLX debug messages$(_RESET), which may impact rendering performances.\n\n" - @printf "Building $(_BOLD)$(NAME)$(_RESET) in $(_BOLD)$(MODE)$(_RESET) mode\n" @printf "\tOperating System: $(_BOLD)$(OS)$(_RESET)\n" @printf "\tCompiler: $(_BOLD)$(CXX)$(_RESET)\n" diff --git a/src/renderer/core/render_core.cpp b/src/renderer/core/render_core.cpp index c96e6d6..0a52b5c 100644 --- a/src/renderer/core/render_core.cpp +++ b/src/renderer/core/render_core.cpp @@ -6,7 +6,7 @@ /* By: maldavid +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/12/17 23:33:34 by maldavid #+# #+# */ -/* Updated: 2024/04/23 20:09:14 by kiroussa ### ########.fr */ +/* Updated: 2024/04/23 20:32:54 by kiroussa ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,6 +16,14 @@ #include #include +#ifdef DEBUG + #ifdef MLX_COMPILER_MSVC + #pragma NOTE("MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances") + #else + #warning "MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances" + #endif +#endif + namespace mlx { namespace RCore