1
0
Fork 0
Diplomový projekt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
raytracer/opencldialog.h

28 lines
539 B

#ifndef OPENCLDIALOG_H
#define OPENCLDIALOG_H
#include <QDialog>
#include <CL/cl.hpp>
namespace Ui {
class OpenCLDialog;
}
class OpenCLDialog : public QDialog
{
Q_OBJECT
std::vector<cl::Platform> platforms;
std::vector<cl::Device> devices;
void loadSettings();
public:
explicit OpenCLDialog(QWidget *parent = 0);
~OpenCLDialog();
cl::Device& getSelectedDevice();
void done(int r);
protected slots:
void refreshDevices(int platformIdx);
private:
Ui::OpenCLDialog *ui;
};
#endif // OPENCLDIALOG_H