From 46a2592eef90782bea6124767c072f275330bd00 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 21 Jul 2022 13:21:53 +1000 Subject: Cleanup: spelling in comments, typos in tool-tips --- source/blender/gpu/metal/mtl_memory.mm | 2 +- source/blender/gpu/metal/mtl_query.mm | 4 ++-- source/blender/gpu/metal/mtl_uniform_buffer.hh | 2 +- source/blender/gpu/metal/mtl_uniform_buffer.mm | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/gpu/metal') 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 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); } -- cgit v1.2.3