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 <ideasman42@gmail.com>2021-12-08 03:30:03 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-12-08 05:31:19 +0300
commit2964c4e1d08836b0ef2d0382579e8da173650b24 (patch)
tree88232b2b0a10862d86e8f776e52a88c13bf1d764 /intern/cycles/device
parent333dc7b5c4ee44986294c6b5683fa4813454279b (diff)
Cleanup: spelling in comments
Diffstat (limited to 'intern/cycles/device')
-rw-r--r--intern/cycles/device/metal/bvh.mm6
-rw-r--r--intern/cycles/device/metal/device_impl.mm4
-rw-r--r--intern/cycles/device/metal/kernel.h2
-rw-r--r--intern/cycles/device/metal/kernel.mm2
-rw-r--r--intern/cycles/device/metal/queue.mm2
5 files changed, 8 insertions, 8 deletions
diff --git a/intern/cycles/device/metal/bvh.mm b/intern/cycles/device/metal/bvh.mm
index 7c79196845a..1953102cb41 100644
--- a/intern/cycles/device/metal/bvh.mm
+++ b/intern/cycles/device/metal/bvh.mm
@@ -160,7 +160,7 @@ bool BVHMetal::build_BLAS_mesh(Progress &progress,
}
/* Force a single any-hit call, so shadow record-all behavior works correctly */
- /* (Match optix behaviour: unsigned int build_flags =
+ /* (Match optix behavior: unsigned int build_flags =
* OPTIX_GEOMETRY_FLAG_REQUIRE_SINGLE_ANYHIT_CALL;) */
geomDesc.allowDuplicateIntersectionFunctionInvocation = false;
@@ -359,7 +359,7 @@ bool BVHMetal::build_BLAS_hair(Progress &progress,
geomDescMotion.intersectionFunctionTableOffset = 1;
/* Force a single any-hit call, so shadow record-all behavior works correctly */
- /* (Match optix behaviour: unsigned int build_flags =
+ /* (Match optix behavior: unsigned int build_flags =
* OPTIX_GEOMETRY_FLAG_REQUIRE_SINGLE_ANYHIT_CALL;) */
geomDescMotion.allowDuplicateIntersectionFunctionInvocation = false;
geomDescMotion.opaque = true;
@@ -375,7 +375,7 @@ bool BVHMetal::build_BLAS_hair(Progress &progress,
geomDescNoMotion.intersectionFunctionTableOffset = 1;
/* Force a single any-hit call, so shadow record-all behavior works correctly */
- /* (Match optix behaviour: unsigned int build_flags =
+ /* (Match optix behavior: unsigned int build_flags =
* OPTIX_GEOMETRY_FLAG_REQUIRE_SINGLE_ANYHIT_CALL;) */
geomDescNoMotion.allowDuplicateIntersectionFunctionInvocation = false;
geomDescNoMotion.opaque = true;
diff --git a/intern/cycles/device/metal/device_impl.mm b/intern/cycles/device/metal/device_impl.mm
index 69a08ca07d1..fd249204646 100644
--- a/intern/cycles/device/metal/device_impl.mm
+++ b/intern/cycles/device/metal/device_impl.mm
@@ -333,7 +333,7 @@ bool MetalDevice::load_kernels(const uint _kernel_features)
/* local helper: fetch the kernel source code, adjust it for specific PSO_.. kernel_type flavor,
* then compile it into a MTLLibrary */
auto fetch_and_compile_source = [&](int kernel_type) {
- /* record the source uesd to compile this library, for hash building later */
+ /* Record the source used to compile this library, for hash building later. */
string &source = source_used_for_compile[kernel_type];
switch (kernel_type) {
@@ -925,7 +925,7 @@ void MetalDevice::tex_alloc(device_texture &mem)
}
}
- /* optimise the texture for GPU access */
+ /* Optimize the texture for GPU access. */
id<MTLCommandBuffer> commandBuffer = [mtlGeneralCommandQueue commandBuffer];
id<MTLBlitCommandEncoder> blitCommandEncoder = [commandBuffer blitCommandEncoder];
[blitCommandEncoder optimizeContentsForGPUAccess:mtlTexture];
diff --git a/intern/cycles/device/metal/kernel.h b/intern/cycles/device/metal/kernel.h
index d4941627fd8..4874af1bfa6 100644
--- a/intern/cycles/device/metal/kernel.h
+++ b/intern/cycles/device/metal/kernel.h
@@ -50,7 +50,7 @@ enum {
*/
PSO_GENERIC,
- /* A kernel that is relatively quick to compile, but is specialised for the
+ /* A kernel that is relatively quick to compile, but is specialized for the
* scene being rendered. It only contains the functionality and even baked in
* constants for values that means it needs to be recompiled whenever a
* dependent setting is changed. The render performance of this kernel is
diff --git a/intern/cycles/device/metal/kernel.mm b/intern/cycles/device/metal/kernel.mm
index 9cbad10bf5a..f5c3adbce25 100644
--- a/intern/cycles/device/metal/kernel.mm
+++ b/intern/cycles/device/metal/kernel.mm
@@ -455,7 +455,7 @@ bool MetalDeviceKernels::load(MetalDevice *device, int kernel_type)
return;
}
- /* Only specialise kernels where it can make an impact */
+ /* Only specialize kernels where it can make an impact. */
if (kernel_type == PSO_SPECIALISED) {
if (i < DEVICE_KERNEL_INTEGRATOR_INTERSECT_CLOSEST ||
i > DEVICE_KERNEL_INTEGRATOR_MEGAKERNEL) {
diff --git a/intern/cycles/device/metal/queue.mm b/intern/cycles/device/metal/queue.mm
index 2545fa0f3b0..ced01e7b9b6 100644
--- a/intern/cycles/device/metal/queue.mm
+++ b/intern/cycles/device/metal/queue.mm
@@ -136,7 +136,7 @@ bool MetalDeviceQueue::enqueue(DeviceKernel kernel,
arg_buffer_length += sizeof(KernelParamsMetal);
arg_buffer_length = round_up(arg_buffer_length, 256);
- /* Metal ancilliary bindless pointers */
+ /* Metal ancillary bindless pointers. */
size_t metal_offsets = arg_buffer_length;
arg_buffer_length += metal_device->mtlAncillaryArgEncoder.encodedLength;
arg_buffer_length = round_up(arg_buffer_length, metal_device->mtlAncillaryArgEncoder.alignment);