Package se.llbit.chunky.renderer.cl

Examples of se.llbit.chunky.renderer.cl.CLPlatform


    JButton runBtn = new JButton("Run on selected device");
    runBtn.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        CLPlatform platform = null;
        int plaf = platformList.getSelectedIndex();
        if (plaf >= 0 && plaf < platforms.size()) {
          platform = platforms.get(plaf);
        }
        CLDevice device = null;
View Full Code Here


      String name = new String(data, 0, (int) dataSize[0] - 1);

      clGetPlatformInfo(platform_id[plaf], CL_PLATFORM_VERSION, 500, dataPtr, dataSize);
      String version = new String(data, 0, (int) dataSize[0] - 1);

      CLPlatform platform = new CLPlatform(platform_id[plaf], name, version);
      platforms.add(platform);

      int[] num_devices = new int[1];
      clGetDeviceIDs(platform_id[plaf], CL_DEVICE_TYPE_ALL, 0, null, num_devices);
View Full Code Here

TOP

Related Classes of se.llbit.chunky.renderer.cl.CLPlatform

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.