update metal to report device features
This commit is contained in:
Submodule projects/apis/metal/depends/SPIRV-Cross updated: d8e3e2b141...2345c781f7
@@ -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:8]) { devicesList[i].features.avaliableSamples |= GN_SAMPLE_BIT_8; }
|
||||||
if ([device supportsTextureSampleCount:16]) { devicesList[i].features.avaliableSamples |= GN_SAMPLE_BIT_16; }
|
if ([device supportsTextureSampleCount:16]) { devicesList[i].features.avaliableSamples |= GN_SAMPLE_BIT_16; }
|
||||||
if ([device supportsTextureSampleCount:32]) { devicesList[i].features.avaliableSamples |= GN_SAMPLE_BIT_32; }
|
if ([device supportsTextureSampleCount:32]) { devicesList[i].features.avaliableSamples |= GN_SAMPLE_BIT_32; }
|
||||||
|
|
||||||
|
devicesList[i].features.maxMemoryAllocations = 0x40000000;
|
||||||
|
devicesList[i].features.maxPushConstantSize = 4096;
|
||||||
}
|
}
|
||||||
[devices release];
|
[devices release];
|
||||||
return devicesList;
|
return devicesList;
|
||||||
|
Reference in New Issue
Block a user