Package se.llbit.chunky.renderer.cl

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


        CLPlatform platform = null;
        int plaf = platformList.getSelectedIndex();
        if (plaf >= 0 && plaf < platforms.size()) {
          platform = platforms.get(plaf);
        }
        CLDevice device = null;
        int dev = deviceList.getSelectedIndex();
        if (dev >= 0 && dev < deviceList.getItemCount()) {
          device = (CLDevice) deviceList.getItemAt(dev);
        }
        if (platform != null && device != null) {
View Full Code Here


        clGetDeviceInfo(devices[dev], CL_DEVICE_MAX_WORK_GROUP_SIZE, Sizeof.size_t, Pointer.to(cl_uint), null);

        int workGroupSize = cl_uint[0];

        CLDevice device = new CLDevice(devices[dev],
            deviceType, deviceName, computeUnits, workGroupSize);
        deviceList.add(device);
      }

      deviceMap.put(platform, deviceList);
View Full Code Here

  }

  private void updateDeviceInfo() {
    int dev = deviceList.getSelectedIndex();
    if (dev >= 0 && dev < deviceList.getItemCount()) {
      CLDevice device = (CLDevice) deviceList.getItemAt(dev);
      deviceInfo.setText(device.getInfoString());
    }
  }
View Full Code Here

TOP

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

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.