update metal to report device features
This commit is contained in:
@@ -36,6 +36,9 @@ gnPhysicalDevice* getMetalDevices(gnInstanceHandle instance, uint32_t* deviceCou
|
||||
if ([device supportsTextureSampleCount:8]) { devicesList[i].features.avaliableSamples |= GN_SAMPLE_BIT_8; }
|
||||
if ([device supportsTextureSampleCount:16]) { devicesList[i].features.avaliableSamples |= GN_SAMPLE_BIT_16; }
|
||||
if ([device supportsTextureSampleCount:32]) { devicesList[i].features.avaliableSamples |= GN_SAMPLE_BIT_32; }
|
||||
|
||||
devicesList[i].features.maxMemoryAllocations = 0x40000000;
|
||||
devicesList[i].features.maxPushConstantSize = 4096;
|
||||
}
|
||||
[devices release];
|
||||
return devicesList;
|
||||
|
Reference in New Issue
Block a user