Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-23 04:15:50 +0300
committerCampbell Barton <campbell@blender.org>2022-03-23 04:15:50 +0300
commit4822153b85551ffce614c174c9a3bff0f8b8a975 (patch)
tree6257cf39620781dc0f7ab9c029518bfe2895dbf3 /source/blender/gpu/metal
parent6bb28a1a524060eca8d20dff8f72e1d4bbc7d938 (diff)
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/gpu/metal')
-rw-r--r--source/blender/gpu/metal/mtl_backend.mm11
-rw-r--r--source/blender/gpu/metal/mtl_capabilities.hh2
2 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/gpu/metal/mtl_backend.mm b/source/blender/gpu/metal/mtl_backend.mm
index 3e61e882b3a..e1da371bd0b 100644
--- a/source/blender/gpu/metal/mtl_backend.mm
+++ b/source/blender/gpu/metal/mtl_backend.mm
@@ -108,8 +108,7 @@ void MTLBackend::render_begin()
void MTLBackend::render_end()
{
/* If call-count reaches zero, drain auto release pool.
- * Esures temporary objects are freed within a frame's
- * lifetime. */
+ * Ensures temporary objects are freed within a frame's lifetime. */
BLI_assert(g_autoreleasepool != nil);
g_autoreleasepool_depth--;
BLI_assert(g_autoreleasepool_depth >= 0);
@@ -136,7 +135,7 @@ bool MTLBackend::is_inside_render_boundary()
/** \name Platform
* \{ */
-/* For Metal, platform_init needs to be called after MTLContext initialisation. */
+/* For Metal, platform_init needs to be called after MTLContext initialization. */
void MTLBackend::platform_init(MTLContext *ctx)
{
if (GPG.initialized) {
@@ -318,7 +317,7 @@ void MTLBackend::capabilities_init(MTLContext *ctx)
id<MTLDevice> device = nil; /*ctx->device TODO(Metal): Implement MTLContext. */
BLI_assert(device);
- /* Initialise Capabilities. */
+ /* Initialize Capabilities. */
MTLBackend::capabilities.supports_argument_buffers_tier2 = ([device argumentBuffersSupport] ==
MTLArgumentBuffersTier2);
MTLBackend::capabilities.supports_family_mac1 = [device supportsFamily:MTLGPUFamilyMac1];
@@ -398,8 +397,8 @@ void MTLBackend::capabilities_init(MTLContext *ctx)
GCaps.broken_amd_driver = false;
/* Metal related workarounds. */
- /* Minimum per-vertex stride is 4 bytes in Metal. A bound vertex buffer must contribute atleast 4
- * bytes per vertex. */
+ /* Minimum per-vertex stride is 4 bytes in Metal.
+ * A bound vertex buffer must contribute at least 4 bytes per vertex. */
GCaps.minimum_per_vertex_stride = 4;
}
diff --git a/source/blender/gpu/metal/mtl_capabilities.hh b/source/blender/gpu/metal/mtl_capabilities.hh
index ad2effdc8f3..5563008e87d 100644
--- a/source/blender/gpu/metal/mtl_capabilities.hh
+++ b/source/blender/gpu/metal/mtl_capabilities.hh
@@ -21,7 +21,7 @@ namespace gpu {
/* Context-specific limits -- populated in 'MTLBackend::platform_init' */
typedef struct MTLCapabilities {
- /* Variable Limits & faeture sets */
+ /* Variable Limits & feature sets. */
int max_color_render_targets = 4; /* Minimum = 4 */
int buffer_alignment_for_textures = 256; /* Upper bound = 256 bytes */
int minimum_buffer_offset_alignment = 256; /* Upper bound = 256 bytes */