NewGPU returns a new GPU struct with Graphics Defaults set configure any additional defaults before calling Config. Use NewComputeGPU for a compute-only GPU that doesn't load graphics extensions.
()
| 132 | // configure any additional defaults before calling Config. |
| 133 | // Use NewComputeGPU for a compute-only GPU that doesn't load graphics extensions. |
| 134 | func NewGPU() *GPU { |
| 135 | gp := &GPU{} |
| 136 | gp.Defaults(true) |
| 137 | return gp |
| 138 | } |
| 139 | |
| 140 | // NewComputeGPU returns a new GPU struct with Compute Defaults set |
| 141 | // configure any additional defaults before calling Config. |