From f6f856c1ecaa6ca181b0cdaf0e0db31a6c0035db Mon Sep 17 00:00:00 2001 From: Greg Wells Date: Wed, 9 Jul 2025 15:31:13 -0400 Subject: [PATCH] update metal to report device features --- projects/apis/metal/depends/SPIRV-Cross | 2 +- projects/apis/metal/src/devices/metal_physical_device.m | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/apis/metal/depends/SPIRV-Cross b/projects/apis/metal/depends/SPIRV-Cross index d8e3e2b..2345c78 160000 --- a/projects/apis/metal/depends/SPIRV-Cross +++ b/projects/apis/metal/depends/SPIRV-Cross @@ -1 +1 @@ -Subproject commit d8e3e2b141b8c8a167b2e3984736a6baacff316c +Subproject commit 2345c781f7fc56e32a84730dd249144655e550cd diff --git a/projects/apis/metal/src/devices/metal_physical_device.m b/projects/apis/metal/src/devices/metal_physical_device.m index 3cb2bd0..e71b36b 100644 --- a/projects/apis/metal/src/devices/metal_physical_device.m +++ b/projects/apis/metal/src/devices/metal_physical_device.m @@ -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;