microsoft / OpenCLOn12

The OpenCL-on-D3D12 mapping layer
MIT License
104 stars 13 forks source link

clGetDeviceInfo needs a catch for device creation failure #14

Open jenatali opened 3 years ago

jenatali commented 3 years ago

The CacheCaps method may need to temporarily create a device, which can fail. When querying for any of the caps that are filled out by CacheCaps, we could throw, so clGetDeviceInfo should handle this.