File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,12 @@ int main()
195
195
if (!input_full.defined ())
196
196
return -1 ;
197
197
198
+ // ordinarily, once can wrap a Func around a buffer as follows:
199
+ // Func image = Func(input_full);
200
+ // or even when T=void:
201
+ // Halide::Buffer<> input_full_void = input_full;
202
+ // Func image = Func(input_full_void);
203
+ // but for the examples here, we want to protect the bounds too:
198
204
Func image = SafeIdentity (input_full, " safe_image" );
199
205
200
206
Func broken = example_broken (image);
Original file line number Diff line number Diff line change 23
23
// we also need to define this to prevent imgui.h form including the stock
24
24
// version of imconfig.h
25
25
#define IMGUI_DISABLE_INCLUDE_IMCONFIG_H
26
- #include < imgui.h >
27
- #include < imgui_impl_glfw.h>
28
- #include < imgui_impl_opengl2.h>
26
+ #include " ../third-party/ imgui/imgui.h "
27
+ #include " ../third-party/imgui/examples/ imgui_impl_glfw.h"
28
+ #include " ../third-party/imgui/examples/ imgui_impl_opengl2.h"
29
29
30
30
#define ENABLE_IMGUI_DEMO (0 )
31
31
@@ -42,7 +42,7 @@ namespace ImGui
42
42
43
43
#include < stdio.h>
44
44
#include < Halide.h>
45
- #include < GLFW/glfw3.h>
45
+ #include " ../third-party/glfw/include/ GLFW/glfw3.h"
46
46
47
47
#include " system.hpp"
48
48
#include " utils.h"
You can’t perform that action at this time.
0 commit comments