1 module dcompute.driver.cuda.kernel;
2 
3 import dcompute.driver.cuda;
4 struct Kernel(F) if (is(F==function)|| is(F==void))
5 {
6     void* raw;
7     
8     static struct Attributes
9     {
10         @(0) int maxThreadsPerBlock;
11         // in Bytes
12         @(1) int sharedSize;
13         @(2) int constSize;
14         @(3) int localSize;
15         
16         @(4) int numRegs;
17         @(5) int ptxVersion;
18         @(6) int binaryVersion;
19         @(7) int cacheModeCa;
20     }
21 
22 }