AddDeviceExt adds given extension(s), only if not already set returns true if added.
(ext ...string)
| 172 | // AddDeviceExt adds given extension(s), only if not already set |
| 173 | // returns true if added. |
| 174 | func (gp *GPU) AddDeviceExt(ext ...string) bool { |
| 175 | for _, ex := range ext { |
| 176 | i := FindString(ex, gp.DeviceExts) |
| 177 | if i >= 0 { |
| 178 | continue |
| 179 | } |
| 180 | gp.DeviceExts = append(gp.DeviceExts, ex) |
| 181 | } |
| 182 | return true |
| 183 | } |
| 184 | |
| 185 | // AddValidationLayer adds given validation layer, only if not already set |
| 186 | // returns true if added. |
nothing calls this directly
no test coverage detected