summaryrefslogtreecommitdiff
path: root/graphics/asymptote/cudareflect/kernel.h
blob: 1a1587dfc6dae1d34e4a4f6795eeee1ec4c8623d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);