diff options
Diffstat (limited to 'test/com/jogamp/opencl/HighLevelBindingTest.java')
-rw-r--r-- | test/com/jogamp/opencl/HighLevelBindingTest.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/com/jogamp/opencl/HighLevelBindingTest.java b/test/com/jogamp/opencl/HighLevelBindingTest.java index 884e22ee..e927f1fa 100644 --- a/test/com/jogamp/opencl/HighLevelBindingTest.java +++ b/test/com/jogamp/opencl/HighLevelBindingTest.java @@ -321,35 +321,5 @@ public class HighLevelBindingTest { context.release(); } - - @Test - public void supportedImageFormatsTest() { - - CLDevice[] devices = CLPlatform.getDefault().listCLDevices(); - - CLDevice theChosenOne = null; - for (CLDevice device : devices) { - if(device.isImageSupportAvailable()) { - theChosenOne = device; - break; - } - } - - if(theChosenOne == null) { - out.println("can not test image api."); - return; - } - - CLContext context = CLContext.create(theChosenOne); - - try{ - CLImageFormat[] formats = context.getSupportedImage2dFormats(); - assertTrue(formats.length > 0); - out.println("sample image format: "+formats[0]); - }finally{ - context.release(); - } - - } } |