Cleanup: spelling in comments, typos in tool-tips
This commit is contained in:
@@ -11,7 +11,7 @@ CCL_NAMESPACE_BEGIN
|
||||
* intersection we'll be comparing against the exact same distances. */
|
||||
ccl_device_forceinline float intersection_t_offset(const float t)
|
||||
{
|
||||
/* This is a simplified version of nextafterf(t, FLT_MAX), only dealing with
|
||||
/* This is a simplified version of `nextafterf(t, FLT_MAX)`, only dealing with
|
||||
* non-negative and finite t. */
|
||||
kernel_assert(t >= 0.0f && isfinite_safe(t));
|
||||
const uint32_t bits = (t == 0.0f) ? 1 : __float_as_uint(t) + 1;
|
||||
|
@@ -70,7 +70,7 @@ KERNEL_STRUCT_MEMBER(film, float4, rec709_to_r)
|
||||
KERNEL_STRUCT_MEMBER(film, float4, rec709_to_g)
|
||||
KERNEL_STRUCT_MEMBER(film, float4, rec709_to_b)
|
||||
KERNEL_STRUCT_MEMBER(film, int, is_rec709)
|
||||
/* Exposuse. */
|
||||
/* Exposure. */
|
||||
KERNEL_STRUCT_MEMBER(film, float, exposure)
|
||||
/* Passed used. */
|
||||
KERNEL_STRUCT_MEMBER(film, int, pass_flag)
|
||||
|
@@ -1168,7 +1168,7 @@ typedef struct KernelData {
|
||||
uint max_shaders;
|
||||
uint volume_stack_size;
|
||||
|
||||
/* Always dynamic data mambers. */
|
||||
/* Always dynamic data members. */
|
||||
KernelCamera cam;
|
||||
KernelBake bake;
|
||||
KernelTables tables;
|
||||
|
@@ -83,14 +83,14 @@ static void driverdropper_sample(bContext *C, wmOperator *op, const wmEvent *eve
|
||||
if (but == NULL) {
|
||||
return;
|
||||
}
|
||||
/* Get paths for src... */
|
||||
/* Get paths for the source. */
|
||||
PointerRNA *target_ptr = &but->rnapoin;
|
||||
PropertyRNA *target_prop = but->rnaprop;
|
||||
const int target_index = but->rnaindex;
|
||||
|
||||
char *target_path = RNA_path_from_ID_to_property(target_ptr, target_prop);
|
||||
|
||||
/* ... and destination */
|
||||
/* Get paths for the destination. */
|
||||
char *dst_path = RNA_path_from_ID_to_property(&ddr->ptr, ddr->prop);
|
||||
|
||||
/* Now create driver(s) */
|
||||
|
@@ -123,7 +123,7 @@ typedef struct PaintStroke {
|
||||
StrokeRedraw redraw;
|
||||
StrokeDone done;
|
||||
|
||||
bool original; /* Raycast original mesh at start of stroke */
|
||||
bool original; /* Ray-cast original mesh at start of stroke. */
|
||||
} PaintStroke;
|
||||
|
||||
/*** Cursors ***/
|
||||
|
@@ -17,8 +17,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* GPU backends abstract the differences between different APIs. GPU_context_create
|
||||
* automatically initializes the backend, and GPU_context_discard frees it when there
|
||||
/* GPU back-ends abstract the differences between different APIs. #GPU_context_create
|
||||
* automatically initializes the back-end, and #GPU_context_discard frees it when there
|
||||
* are no more contexts. */
|
||||
bool GPU_backend_supported(void);
|
||||
eGPUBackendType GPU_backend_get_type(void);
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -1754,12 +1754,12 @@ static void rna_def_color_balance(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "invert_gain", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_COLOR_BALANCE_INVERSE_GAIN);
|
||||
RNA_def_property_ui_text(prop, "Inverse Gain", "Invert the gain color`");
|
||||
RNA_def_property_ui_text(prop, "Inverse Gain", "Invert the gain color");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_SequenceColorBalance_update");
|
||||
|
||||
prop = RNA_def_property(srna, "invert_slope", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_COLOR_BALANCE_INVERSE_SLOPE);
|
||||
RNA_def_property_ui_text(prop, "Inverse Slope", "Invert the slope color`");
|
||||
RNA_def_property_ui_text(prop, "Inverse Slope", "Invert the slope color");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_SequenceColorBalance_update");
|
||||
|
||||
prop = RNA_def_property(srna, "invert_offset", PROP_BOOLEAN, PROP_NONE);
|
||||
|
Reference in New Issue
Block a user