Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/metal/mtl_capabilities.hh
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| /** \file | /** \file | ||||
| * \ingroup gpu | * \ingroup gpu | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| namespace blender { | namespace blender { | ||||
| namespace gpu { | namespace gpu { | ||||
| /*** Derived from: https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf ***/ | /*** Derived from: https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf ***/ | ||||
| /** Upper Bound/Fixed Limits **/ | /** Upper Bound/Fixed Limits **/ | ||||
| #define MTL_MAX_TEXTURE_SLOTS 128 | #define MTL_MAX_TEXTURE_SLOTS 128 | ||||
| #define MTL_MAX_SAMPLER_SLOTS MTL_MAX_TEXTURE_SLOTS | #define MTL_MAX_SAMPLER_SLOTS MTL_MAX_TEXTURE_SLOTS | ||||
| /* Max limit without using bindless for samplers. */ | |||||
| #define MTL_MAX_DEFAULT_SAMPLERS 16 | |||||
| #define MTL_MAX_UNIFORM_BUFFER_BINDINGS 31 | #define MTL_MAX_UNIFORM_BUFFER_BINDINGS 31 | ||||
| #define MTL_MAX_VERTEX_INPUT_ATTRIBUTES 31 | #define MTL_MAX_VERTEX_INPUT_ATTRIBUTES 31 | ||||
| #define MTL_MAX_UNIFORMS_PER_BLOCK 64 | #define MTL_MAX_UNIFORMS_PER_BLOCK 64 | ||||
| /* Context-specific limits -- populated in 'MTLBackend::platform_init' */ | /* Context-specific limits -- populated in 'MTLBackend::platform_init' */ | ||||
| struct MTLCapabilities { | struct MTLCapabilities { | ||||
| /* Variable Limits & feature sets. */ | /* Variable Limits & feature sets. */ | ||||
| Show All 22 Lines | |||||