Cleanup: spelling in comments

This commit is contained in:
Campbell Barton
2023-09-26 19:50:04 +10:00
parent 943096b3bb
commit 077832e063
7 changed files with 17 additions and 17 deletions
+7 -7
View File
@@ -49,7 +49,7 @@ struct BVHMetalBuildThrottler {
bvh_throttle_printf("safe_wired_limit = %zu\n", safe_wired_limit);
}
/* Block until we're safely able to wire the requsted resources. */
/* Block until we're safely able to wire the requested resources. */
void acquire(size_t bytes_to_be_wired)
{
bool throttled = false;
@@ -291,8 +291,8 @@ bool BVHMetal::build_BLAS_mesh(Progress &progress,
}
[accelEnc endEncoding];
/* Estimated size of resources that will be wired for the GPU accelerated build. Accel-struct
* size is doubled to account for possible compaction step. */
/* Estimated size of resources that will be wired for the GPU accelerated build.
* Acceleration-struct size is doubled to account for possible compaction step. */
size_t wired_size = posBuf.allocatedSize + indexBuf.allocatedSize + scratchBuf.allocatedSize +
accel_uncompressed.allocatedSize * 2;
@@ -627,8 +627,8 @@ bool BVHMetal::build_BLAS_hair(Progress &progress,
}
[accelEnc endEncoding];
/* Estimated size of resources that will be wired for the GPU accelerated build. Accel-struct
* size is doubled to account for possible compaction step. */
/* Estimated size of resources that will be wired for the GPU accelerated build.
* Acceleration-struct size is doubled to account for possible compaction step. */
size_t wired_size = cpBuffer.allocatedSize + radiusBuffer.allocatedSize +
idxBuffer.allocatedSize + scratchBuf.allocatedSize +
accel_uncompressed.allocatedSize * 2;
@@ -875,8 +875,8 @@ bool BVHMetal::build_BLAS_pointcloud(Progress &progress,
}
[accelEnc endEncoding];
/* Estimated size of resources that will be wired for the GPU accelerated build. Accel-struct
* size is doubled to account for possible compaction step. */
/* Estimated size of resources that will be wired for the GPU accelerated build.
* Acceleration-struct size is doubled to account for possible compaction step. */
size_t wired_size = aabbBuf.allocatedSize + scratchBuf.allocatedSize +
accel_uncompressed.allocatedSize * 2;
+2 -2
View File
@@ -349,8 +349,8 @@ string MetalDevice::preprocess_source(MetalPipelineType pso_type,
case METAL_GPU_APPLE:
global_defines += "#define __KERNEL_METAL_APPLE__\n";
# ifdef WITH_NANOVDB
/* Compiling in NanoVDB results in a marginal drop in render perf, so disable it for
* specialized PSOs when no textures are using it. */
/* Compiling in NanoVDB results in a marginal drop in render performance,
* so disable it for specialized PSOs when no textures are using it. */
if ((pso_type == PSO_GENERIC || using_nanovdb) && DebugFlags().metal.use_nanovdb) {
global_defines += "#define WITH_NANOVDB\n";
}
+2 -2
View File
@@ -334,9 +334,9 @@ enum {
PANEL_TYPE_NO_SEARCH = (1 << 7),
};
/* uilist types */
/* #uiList types. */
/* Draw an item in the uiList */
/** Draw an item in the `ui_list`. */
using uiListDrawItemFunc = void (*)(uiList *ui_list,
const bContext *C,
uiLayout *layout,
+1 -1
View File
@@ -27,7 +27,7 @@ struct SearchItem {
struct RecentCache {
/**
* Stores a logical time stamp for each previously choosen search item. The higher the time
* Stores a logical time stamp for each previously chosen search item. The higher the time
* stamp, the more recently the item has been selected.
*/
Map<std::string, int> logical_time_by_str;
@@ -69,8 +69,8 @@ void brdf_f82_tint_lut(vec3 F0,
* model at ~82°, similar to F0 and F90.
* With F82-Tint, on the other hand, the value at 82° is the value of the classic Schlick
* model multiplied by the tint input.
* Therefore, the factor follows by setting F82Tint(cosI) = FSchlick(cosI) - b*cosI*(1-cosI)^6
* and F82Tint(acos(1/7)) = FSchlick(acos(1/7)) * f82_tint and solving for b. */
* Therefore, the factor follows by setting `F82Tint(cosI) = FSchlick(cosI) - b*cosI*(1-cosI)^6`
* and `F82Tint(acos(1/7)) = FSchlick(acos(1/7)) * f82_tint` and solving for `b`. */
const float f = 6.0 / 7.0;
const float f5 = (f * f) * (f * f) * f;
const float f6 = (f * f) * (f * f) * (f * f);
@@ -321,8 +321,8 @@ void brdf_f82_tint_lut(vec3 F0,
* model at ~82°, similar to F0 and F90.
* With F82-Tint, on the other hand, the value at 82° is the value of the classic Schlick
* model multiplied by the tint input.
* Therefore, the factor follows by setting F82Tint(cosI) = FSchlick(cosI) - b*cosI*(1-cosI)^6
* and F82Tint(acos(1/7)) = FSchlick(acos(1/7)) * f82_tint and solving for b. */
* Therefore, the factor follows by setting `F82Tint(cosI) = FSchlick(cosI) - b*cosI*(1-cosI)^6`
* and `F82Tint(acos(1/7)) = FSchlick(acos(1/7)) * f82_tint` and solving for `b`. */
const float f = 6.0 / 7.0;
const float f5 = (f * f) * (f * f) * f;
const float f6 = (f * f) * (f * f) * (f * f);
@@ -975,7 +975,7 @@ inline void _texture_write_internal_fast(thread _mtl_combined_image_sampler_3d<S
tex.texture->write(value, uint3(_coord.xyz));
}
/* Texture atomic operations are only supported in Metal 3.1 and onwards (macOS 14.0 Sonoma). */
/* Texture atomic operations are only supported in Metal 3.1 and onward (macOS 14.0 Sonoma). */
#if __METAL_VERSION__ >= 310
/* Image atomic operations. */