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-09-22 07:48:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-09-22 07:54:01 +0300
commit4d66cbd140b1648b79df0df695046cb718797b70 (patch)
tree945b1093ba250ad57611f44bda7ca0b8a31a0211 /intern/cycles/render
parent77061a5621015dfd0c9f89fd21cb23d706d0cec8 (diff)
Cleanup: spelling in comments
Diffstat (limited to 'intern/cycles/render')
-rw-r--r--intern/cycles/render/buffers.cpp2
-rw-r--r--intern/cycles/render/buffers.h6
-rw-r--r--intern/cycles/render/gpu_display.h10
-rw-r--r--intern/cycles/render/session.cpp8
-rw-r--r--intern/cycles/render/session.h6
-rw-r--r--intern/cycles/render/tile.cpp4
-rw-r--r--intern/cycles/render/tile.h2
7 files changed, 19 insertions, 19 deletions
diff --git a/intern/cycles/render/buffers.cpp b/intern/cycles/render/buffers.cpp
index 1cdae3af7f5..186699596ac 100644
--- a/intern/cycles/render/buffers.cpp
+++ b/intern/cycles/render/buffers.cpp
@@ -300,7 +300,7 @@ void render_buffers_host_copy_denoised(RenderBuffers *dst,
DCHECK_EQ(dst_params.width, src_params.width);
/* TODO(sergey): More sanity checks to avoid buffer overrun. */
- /* Create a map of pass ofsets to be copied.
+ /* Create a map of pass offsets to be copied.
* Assume offsets are different to allow copying passes between buffers with different set of
* passes. */
diff --git a/intern/cycles/render/buffers.h b/intern/cycles/render/buffers.h
index c048234167d..a07e7289566 100644
--- a/intern/cycles/render/buffers.h
+++ b/intern/cycles/render/buffers.h
@@ -116,7 +116,7 @@ class BufferParams : public Node {
*
* When the scene passes are given, the buffer passes will be created from them and stored in
* this params, and then params are updated for those passes.
- * The `update_passes()` without parameters updates offsets and stries which are stored outside
+ * The `update_passes()` without parameters updates offsets and strides which are stored outside
* of the passes. */
void update_passes();
void update_passes(const vector<Pass *> &scene_passes);
@@ -140,7 +140,7 @@ class BufferParams : public Node {
protected:
void reset_pass_offset();
- /* Multipled by 2 to be able to store noisy and denoised pass types. */
+ /* Multiplied by 2 to be able to store noisy and denoised pass types. */
static constexpr int kNumPassOffsets = PASS_NUM * 2;
/* Indexed by an index derived from pass type and mode, indicates offset of the corresponding
@@ -171,7 +171,7 @@ class RenderBuffers {
/* Copy denoised passes form source to destination.
*
- * Buffer parameters are provided explicitly, allowing to copy pixelks between render buffers which
+ * Buffer parameters are provided explicitly, allowing to copy pixels between render buffers which
* content corresponds to a render result at a non-unit resolution divider.
*
* `src_offset` allows to offset source pixel index which is used when a fraction of the source
diff --git a/intern/cycles/render/gpu_display.h b/intern/cycles/render/gpu_display.h
index cbe347895a1..a01348d28d5 100644
--- a/intern/cycles/render/gpu_display.h
+++ b/intern/cycles/render/gpu_display.h
@@ -117,7 +117,7 @@ class GPUDisplay {
*
* NOTE: The GPUDisplay should be marked for an update being in process with `update_begin()`.
*
- * NOTE: Texture buffer can not be mapped while graphics interopeability is active. This means
+ * NOTE: Texture buffer can not be mapped while graphics interoperability is active. This means
* that `map_texture_buffer()` is not allowed between `graphics_interop_begin()` and
* `graphics_interop_end()` calls.
*/
@@ -125,7 +125,7 @@ class GPUDisplay {
/* Map pixels memory form texture to a buffer available for write from CPU. Width and height will
* define a requested size of the texture to write to.
* Upon success a non-null pointer is returned and the texture buffer is to be unmapped.
- * If an error happens during mapping, or if mapoping is not supported by this GPU display a
+ * If an error happens during mapping, or if mapping is not supported by this GPU display a
* null pointer is returned and the buffer is NOT to be unmapped.
*
* NOTE: Usually the implementation will rely on a GPU context of some sort, and the GPU context
@@ -149,7 +149,7 @@ class GPUDisplay {
* device API. */
DeviceGraphicsInteropDestination graphics_interop_get();
- /* (De)activate GPU display for graphics interoperability outside of regular display udpate
+ /* (De)activate GPU display for graphics interoperability outside of regular display update
* routines. */
virtual void graphics_interop_activate();
virtual void graphics_interop_deactivate();
@@ -206,8 +206,8 @@ class GPUDisplay {
GPUDisplayParams params_;
/* Mark texture as its content has been updated.
- * Used from places which knows that the texture content has been brough up-to-date, so that the
- * drawing knows whether it can be performed, and whether drawing happenned with an up-to-date
+ * Used from places which knows that the texture content has been brought up-to-date, so that the
+ * drawing knows whether it can be performed, and whether drawing happened with an up-to-date
* texture state. */
void mark_texture_updated();
diff --git a/intern/cycles/render/session.cpp b/intern/cycles/render/session.cpp
index 84407f8e6dd..c39232be2b0 100644
--- a/intern/cycles/render/session.cpp
+++ b/intern/cycles/render/session.cpp
@@ -116,7 +116,7 @@ Session::~Session()
}
#endif
- /* Make sure path tracer is destroyed before the deviec. This is needed because destruction might
+ /* Make sure path tracer is destroyed before the device. This is needed because destruction might
* need to access device for device memory free. */
/* TODO(sergey): Convert device to be unique_ptr, and rely on C++ to destruct objects in the
* pre-defined order. */
@@ -612,7 +612,7 @@ void Session::collect_statistics(RenderStats *render_stats)
}
/* --------------------------------------------------------------------
- * Tile and tile pixels aceess.
+ * Tile and tile pixels access.
*/
bool Session::has_multiple_render_tiles() const
@@ -650,7 +650,7 @@ bool Session::copy_render_tile_from_device()
bool Session::get_render_tile_pixels(const string &pass_name, int num_components, float *pixels)
{
/* NOTE: The code relies on a fact that session is fully update and no scene/buffer modification
- * is happenning while this function runs. */
+ * is happening while this function runs. */
const BufferParams &buffer_params = path_trace_->get_render_tile_params();
@@ -689,7 +689,7 @@ bool Session::set_render_tile_pixels(const string &pass_name,
const float *pixels)
{
/* NOTE: The code relies on a fact that session is fully update and no scene/buffer modification
- * is happenning while this function runs. */
+ * is happening while this function runs. */
const BufferPass *pass = buffer_params_.find_pass(pass_name);
if (!pass) {
diff --git a/intern/cycles/render/session.h b/intern/cycles/render/session.h
index 492cfdd1c09..5623604bfe8 100644
--- a/intern/cycles/render/session.h
+++ b/intern/cycles/render/session.h
@@ -120,7 +120,7 @@ class Session {
/* Callback is invoked by tile manager whenever on-dist tiles storage file is closed after
* writing. Allows an engine integration to keep track of those files without worry about
- * transfering the information when it needs to re-create session during rendering. */
+ * transferring the information when it needs to re-create session during rendering. */
function<void(string_view)> full_buffer_written_cb;
explicit Session(const SessionParams &params, const SceneParams &scene_params);
@@ -128,7 +128,7 @@ class Session {
void start();
- /* When quick cancel is requested path tracing is cancelles as soon as possible, without waiting
+ /* When quick cancel is requested path tracing is cancels as soon as possible, without waiting
* for the buffer to be uniformly sampled. */
void cancel(bool quick = false);
@@ -154,7 +154,7 @@ class Session {
void collect_statistics(RenderStats *stats);
/* --------------------------------------------------------------------
- * Tile and tile pixels aceess.
+ * Tile and tile pixels access.
*/
bool has_multiple_render_tiles() const;
diff --git a/intern/cycles/render/tile.cpp b/intern/cycles/render/tile.cpp
index eed75cc2372..28910bffa7b 100644
--- a/intern/cycles/render/tile.cpp
+++ b/intern/cycles/render/tile.cpp
@@ -282,7 +282,7 @@ static bool buffer_params_from_image_spec_atttributes(BufferParams *buffer_param
/* Configure image specification for the given buffer parameters and passes.
*
- * Image channels will ber strictly ordered to match content of corresponding buffer, and the
+ * Image channels will be strictly ordered to match content of corresponding buffer, and the
* metadata will be set so that the render buffers and passes can be reconstructed from it.
*
* If the tile size different from (0, 0) the image specification will be configured to use the
@@ -358,7 +358,7 @@ void TileManager::update(const BufferParams &params, const Scene *scene)
buffer_params_ = params;
- /* TODO(sergey): Proper Error handling, so that if configuration has failed we dont' attempt to
+ /* TODO(sergey): Proper Error handling, so that if configuration has failed we don't attempt to
* write to a partially configured file. */
configure_image_spec_from_buffer(&write_state_.image_spec, buffer_params_, tile_size_);
diff --git a/intern/cycles/render/tile.h b/intern/cycles/render/tile.h
index 124d0b3652c..71b9e966278 100644
--- a/intern/cycles/render/tile.h
+++ b/intern/cycles/render/tile.h
@@ -94,7 +94,7 @@ class TileManager {
* The file will be considered final, all handles to it will be closed. */
void finish_write_tiles();
- /* Check whether any tile ahs been written to disk. */
+ /* Check whether any tile has been written to disk. */
inline bool has_written_tiles() const
{
return write_state_.num_tiles_written != 0;