Blender V5.3
mtl_capabilities.hh File Reference

Go to the source code of this file.

Classes

struct  blender::gpu::MTLCapabilities

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu

Macros

#define MTL_MAX_IMAGE_SLOTS   GPU_MAX_IMAGE
#define MTL_MAX_SAMPLER_SLOTS   64
#define MTL_MAX_TEXTURE_SLOTS   (MTL_MAX_SAMPLER_SLOTS + MTL_MAX_IMAGE_SLOTS)
#define MTL_MAX_DEFAULT_SAMPLERS   16
#define MTL_MAX_BUFFER_BINDINGS   31
#define MTL_MAX_VERTEX_INPUT_ATTRIBUTES   31
#define MTL_MAX_UNIFORMS_PER_BLOCK   64
#define MTL_MAX_SET_BYTES_SIZE   4096

Enumerations

enum  blender::gpu::AppleGPUType { blender::gpu::APPLE_GPU_UNKNOWN = 0 , blender::gpu::APPLE_GPU_M1 = 1 , blender::gpu::APPLE_GPU_M2 = 2 , blender::gpu::APPLE_GPU_M3 = 3 }

Macro Definition Documentation

◆ MTL_MAX_BUFFER_BINDINGS

◆ MTL_MAX_DEFAULT_SAMPLERS

#define MTL_MAX_DEFAULT_SAMPLERS   16

Definition at line 22 of file mtl_capabilities.hh.

◆ MTL_MAX_IMAGE_SLOTS

#define MTL_MAX_IMAGE_SLOTS   GPU_MAX_IMAGE

Upper Bound/Fixed Limits Must match because of #StateManager::image_formats.

Definition at line 17 of file mtl_capabilities.hh.

Referenced by blender::gpu::get_images_binding_mask(), and blender::gpu::get_samplers_binding_mask().

◆ MTL_MAX_SAMPLER_SLOTS

#define MTL_MAX_SAMPLER_SLOTS   64

Definition at line 18 of file mtl_capabilities.hh.

Referenced by blender::gpu::MTLContext::sampler_bind().

◆ MTL_MAX_SET_BYTES_SIZE

#define MTL_MAX_SET_BYTES_SIZE   4096

◆ MTL_MAX_TEXTURE_SLOTS

◆ MTL_MAX_UNIFORMS_PER_BLOCK

#define MTL_MAX_UNIFORMS_PER_BLOCK   64

Definition at line 32 of file mtl_capabilities.hh.

◆ MTL_MAX_VERTEX_INPUT_ATTRIBUTES

#define MTL_MAX_VERTEX_INPUT_ATTRIBUTES   31

Definition at line 31 of file mtl_capabilities.hh.