enumerate physical device properties

This commit is contained in:
2026-05-07 21:43:19 -04:00
parent b93fd9cfec
commit cf212dd9ad
8 changed files with 87 additions and 5 deletions
+5
View File
@@ -47,6 +47,11 @@ void createDevice() {
CHECK(gnEnumeratePhysicalDevices(instance, &physicalDeviceCount, devices));
std::cout << "Found " << physicalDeviceCount << " physical devices:\n";
for (int i = 0; i < physicalDeviceCount; i++) {
gnPhysicalDeviceProperties properties;
gnGetPhysicalDeviceProperties(devices[i], &properties);
std::cout << "Name: " << properties.deviceName << "\n";
}
}
int main() {