summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/cudareflect/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/cudareflect/kernel.h')
-rw-r--r--Build/source/utils/asymptote/cudareflect/kernel.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/cudareflect/kernel.h b/Build/source/utils/asymptote/cudareflect/kernel.h
new file mode 100644
index 00000000000..1a1587dfc6d
--- /dev/null
+++ b/Build/source/utils/asymptote/cudareflect/kernel.h
@@ -0,0 +1,18 @@
+/**
+* @file kernel.h
+* @author Supakorn "Jamie" Rassameemasmuang <jamievlin@outlook.com>
+* CUDA Kernel Header for computing irradiance by solid angle integration
+*/
+#pragma once
+
+#ifndef __INTELLISENSE__
+#ifndef KERNEL_ARGS
+#define KERNEL_ARGS(blk,thrdsz) <<<blk,thrdsz>>>
+#endif
+#else
+#define KERNEL_ARGS(blk,thrdsz)
+#define __CUDACC__
+#endif
+
+#include <cuda_runtime.h>
+void irradiate_ker(float4* in, float3* out, size_t width, size_t height);