summaryrefslogtreecommitdiff
path: root/examples/heterogeneous-hello-world
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-03-21 15:44:21 -0700
committerGitHub <noreply@github.com>2023-03-21 15:44:21 -0700
commit96caba75e8dfbb879eff12cbe1a4c148a259f684 (patch)
tree1c7b2f25484ac22c738e006334d4df559bb733a5 /examples/heterogeneous-hello-world
parent7f11f883d0781952f002b3aa3222a3aa0040f18a (diff)
Add texture tri-linear autodiff example. (#2715)
* Add quad texture example. * delete output image * remove irrelavent files * update project files * fix * Update example. * Fix. * remove out-texture --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'examples/heterogeneous-hello-world')
-rw-r--r--examples/heterogeneous-hello-world/README.md4
-rw-r--r--examples/heterogeneous-hello-world/main.slang25
2 files changed, 0 insertions, 29 deletions
diff --git a/examples/heterogeneous-hello-world/README.md b/examples/heterogeneous-hello-world/README.md
deleted file mode 100644
index 709652922..000000000
--- a/examples/heterogeneous-hello-world/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-Slang "CPU Hello World Heterogeneous" Example
-===============================
-
-This example is a work-in-progress to illustrate how a heterogeneous programming example might work. It should NOT be used as a reference for working Slang code yet. \ No newline at end of file
diff --git a/examples/heterogeneous-hello-world/main.slang b/examples/heterogeneous-hello-world/main.slang
deleted file mode 100644
index b852ca1a1..000000000
--- a/examples/heterogeneous-hello-world/main.slang
+++ /dev/null
@@ -1,25 +0,0 @@
-// main.slang
-
-__target_intrinsic(cpp, "printf(\"%s\", ($0).getBuffer())")
-public void writeln(String text);
-
-[DllImport("User32")]
-int MessageBoxA(void* hwnd, String text, String caption, uint flags);
-
-[COM("111702C2-2FD7-46F9-A318-DCCEEC96357E")]
-interface IObject
-{
- int getValue(int value) throws int;
-}
-
-[DllImport("test-com")]
-IObject createObject();
-
-public __extern_cpp void main() throws int
-{
- writeln("hello world");
- MessageBoxA(nullptr, "hello world!", "example", 0);
- IObject object = createObject();
-
- int rs = try object.getValue(2);
-} \ No newline at end of file