update gryphn to use GN_FALSE + GN_TRUE
This commit is contained in:
@@ -23,14 +23,6 @@ gnPhysicalDevice* getMetalDevices(gnInstanceHandle instance, uint32_t* deviceCou
|
||||
else if (deviceLocation == MTLDeviceLocationExternal)
|
||||
devicesList[i]->properties.deviceType = GN_EXTERNAL_DEVICE;
|
||||
|
||||
// below I am going to fake that there is one queue that can support graphics, compute, and transfer queues
|
||||
// devicesList[i]->queueProperties.queueCount = 1;
|
||||
// devicesList[i]->queueProperties.queueProperties = malloc(sizeof(gnQueueProperties));
|
||||
// devicesList[i]->queueProperties.queueProperties[0] = (gnQueueProperties){
|
||||
// .queueCount = 1,
|
||||
// .queueType = GN_QUEUE_GRAPHICS | GN_QUEUE_COMPUTE | GN_QUEUE_TRANSFER
|
||||
// };
|
||||
|
||||
devicesList[i]->features.maxColorSamples = GN_SAMPLE_BIT_1;
|
||||
if ([device supportsTextureSampleCount:2]) { devicesList[i]->features.maxColorSamples |= GN_SAMPLE_BIT_2; } else {}
|
||||
if ([device supportsTextureSampleCount:4]) { devicesList[i]->features.maxColorSamples |= GN_SAMPLE_BIT_4; } else {}
|
||||
@@ -47,5 +39,5 @@ gnPhysicalDevice* getMetalDevices(gnInstanceHandle instance, uint32_t* deviceCou
|
||||
}
|
||||
|
||||
gnBool metalCanDevicePresent(gnPhysicalDevice device, gnWindowSurface windowSurface) {
|
||||
return gnTrue; // I belive that a window should always be able to present to a surface in metal
|
||||
return GN_TRUE; // I belive that a window should always be able to present to a surface in metal
|
||||
}
|
||||
|
Reference in New Issue
Block a user