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-07-21 06:21:53 +0300
committerCampbell Barton <campbell@blender.org>2022-07-21 06:21:53 +0300
commit46a2592eef90782bea6124767c072f275330bd00 (patch)
tree4c92bcf6338b21e5e058989b536a5e28dda0aea3 /source/blender/gpu/metal
parente75adb979b0acefbf5f01b83f4139d6a43163b92 (diff)
Cleanup: spelling in comments, typos in tool-tips
Diffstat (limited to 'source/blender/gpu/metal')
-rw-r--r--source/blender/gpu/metal/mtl_memory.mm2
-rw-r--r--source/blender/gpu/metal/mtl_query.mm4
-rw-r--r--source/blender/gpu/metal/mtl_uniform_buffer.hh2
-rw-r--r--source/blender/gpu/metal/mtl_uniform_buffer.mm2
4 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpu/metal/mtl_memory.mm b/source/blender/gpu/metal/mtl_memory.mm
index 48e27dd2bb6..07da489bdbb 100644
--- a/source/blender/gpu/metal/mtl_memory.mm
+++ b/source/blender/gpu/metal/mtl_memory.mm
@@ -68,7 +68,7 @@ gpu::MTLBuffer *MTLBufferPool::allocate_with_data(uint64_t size,
bool cpu_visible,
const void *data)
{
- /* Allocate buffer with default HW-compatible alignemnt of 256 bytes.
+ /* Allocate buffer with default HW-compatible alignment of 256 bytes.
* See https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf for more. */
return this->allocate_aligned_with_data(size, 256, cpu_visible, data);
}
diff --git a/source/blender/gpu/metal/mtl_query.mm b/source/blender/gpu/metal/mtl_query.mm
index 33ae8f554c3..dfda0a8de7f 100644
--- a/source/blender/gpu/metal/mtl_query.mm
+++ b/source/blender/gpu/metal/mtl_query.mm
@@ -104,8 +104,8 @@ void MTLQueryPool::get_occlusion_result(MutableSpan<uint32_t> r_values)
BLI_assert(ctx->get_inside_frame());
}
- /* Wait for GPU operatiosn to complete and for query buffer contents
- * to be synchronised back to host memory. */
+ /* Wait for GPU operations to complete and for query buffer contents
+ * to be synchronized back to host memory. */
GPU_finish();
/* Iterate through all possible visibility buffers and copy results into provided
diff --git a/source/blender/gpu/metal/mtl_uniform_buffer.hh b/source/blender/gpu/metal/mtl_uniform_buffer.hh
index 722d819cf96..789a85f0a92 100644
--- a/source/blender/gpu/metal/mtl_uniform_buffer.hh
+++ b/source/blender/gpu/metal/mtl_uniform_buffer.hh
@@ -25,7 +25,7 @@ class MTLUniformBuf : public UniformBuf {
* have yet been allocated. */
bool has_data_ = false;
- /* Bindstate tracking. */
+ /* Bind-state tracking. */
int bind_slot_ = -1;
MTLContext *bound_ctx_ = nullptr;
diff --git a/source/blender/gpu/metal/mtl_uniform_buffer.mm b/source/blender/gpu/metal/mtl_uniform_buffer.mm
index 3415c41f2cc..4893014dedf 100644
--- a/source/blender/gpu/metal/mtl_uniform_buffer.mm
+++ b/source/blender/gpu/metal/mtl_uniform_buffer.mm
@@ -107,7 +107,7 @@ void MTLUniformBuf::bind(int slot)
MEM_SAFE_FREE(data_);
}
- /* Ensure there is atleast an empty dummy buffer. */
+ /* Ensure there is at least an empty dummy buffer. */
if (metal_buffer_ == nullptr) {
this->update(nullptr);
}