Merge pull request #2652 from billhollings/update-texture-dims-A10gpu

Update max texture dimensions for Apple10 GPU.
This commit is contained in:
Bill Hollings
2025-10-20 17:27:49 -04:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -93,7 +93,7 @@ typedef struct {
VkBool32 stencilViews; /**< If true, stencil aspect views are supported through the MTLPixelFormatX24_Stencil8 and MTLPixelFormatX32_Stencil8 formats. Deprecated. Will always be true on all platforms. */
VkBool32 multisampleArrayTextures; /**< If true, MTLTextureType2DMultisampleArray is supported. */
VkBool32 samplerClampToBorder; /**< If true, the border color set when creating a sampler will be respected. */
uint32_t maxTextureDimension; /**< The maximum size of each texture dimension (width, height, or depth). */
uint32_t maxTextureDimension; /**< The maximum size of each texture dimension (width or height). */
uint32_t maxPerStageBufferCount; /**< The total number of per-stage Metal buffers available for shader uniform content and attributes. */
uint32_t maxPerStageTextureCount; /**< The total number of per-stage Metal textures available for shader uniform content. */
uint32_t maxPerStageSamplerCount; /**< The total number of per-stage Metal samplers available for shader uniform content. */

View File

@@ -2547,6 +2547,7 @@ void MVKPhysicalDevice::initMetalFeatures() {
}
if (supportsMTLGPUFamily(Apple10)) {
_metalFeatures.maxTextureDimension = (32 * KIBI);
_metalFeatures.samplerMipLodBias = true;
_metalFeatures.depthBoundsTest = true;
}