diff options
Diffstat (limited to 'src/com/mbien/opencl/CLPlatform.java')
-rw-r--r-- | src/com/mbien/opencl/CLPlatform.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/mbien/opencl/CLPlatform.java b/src/com/mbien/opencl/CLPlatform.java index 582e8abc..252872dc 100644 --- a/src/com/mbien/opencl/CLPlatform.java +++ b/src/com/mbien/opencl/CLPlatform.java @@ -6,9 +6,13 @@ import java.nio.ByteBuffer; * * @author Michael Bien */ -public class CLPlatform { +public final class CLPlatform { + + /** + * OpenCL platform id for this platform. + */ + public final long platformID; - private final long platformID; private final CL cl; CLPlatform(CL cl, long id) { @@ -16,6 +20,9 @@ public class CLPlatform { this.cl = cl; } + /** + * Lists all physical devices available on this platform. + */ public CLDevice[] listCLDevices() { int[] intBuffer = new int[1]; |