(properties *vk.PhysicalDeviceProperties, idx int)
| 326 | } |
| 327 | |
| 328 | func (gp *GPU) GetDeviceName(properties *vk.PhysicalDeviceProperties, idx int) string { |
| 329 | nm := CleanString(string(properties.DeviceName[:])) |
| 330 | return fmt.Sprintf("%s: id=%d idx=%d", nm, properties.DeviceID, idx) |
| 331 | } |
| 332 | |
| 333 | func (gp *GPU) SelectGPU(gpus []vk.PhysicalDevice, gpuCount int) int { |
| 334 | if gpuCount == 1 { |
no test coverage detected