public static ExecResult runGenerateImageOnShader(ExecHelper.RedirectType redirectType, File fragmentShader, File imageOutput, boolean skipRender) throws IOException, InterruptedException { List<String> command = new ArrayList<>(Arrays.asList( ToolPaths.getImageGlfw(), fragmentShader.toString(), "--output", imageOutput.toString())); if (skipRender) { command.add("--exit-linking"); } return new ExecHelper().exec( redirectType, null, false, command.toArray(new String[]{})); }