Cleanup: grammar corrections, minor improvements to wording
This commit is contained in:
@@ -146,7 +146,7 @@ void MetalDeviceQueue::update_capture(DeviceKernel kernel)
|
||||
|
||||
/* Handle single-capture start trigger. */
|
||||
if (kernel == capture_kernel_) {
|
||||
/* Start capturing when the we hit the Nth dispatch of the specified kernel. */
|
||||
/* Start capturing when we hit the Nth dispatch of the specified kernel. */
|
||||
if (capture_dispatch_counter_ == 0) {
|
||||
begin_capture();
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
CCL_NAMESPACE_BEGIN
|
||||
|
||||
/* Initialize queues, so that the this path is considered terminated.
|
||||
/* Initialize queues, so that this path is considered terminated.
|
||||
* Used for early outputs in the camera ray initialization, as well as initialization of split
|
||||
* states for shadow catcher. */
|
||||
ccl_device_inline void path_state_init_queues(IntegratorState state)
|
||||
|
||||
@@ -53,8 +53,8 @@ ccl_device_forceinline float sobol_burley(uint rev_bit_index,
|
||||
result ^= sobol_burley_table[dimension][i + j];
|
||||
i += j + 1;
|
||||
|
||||
/* We can't do "<<= j + 1" because that can overflow the shift
|
||||
* operator, which doesn't do what we need on at least x86. */
|
||||
/* We can't do `<<= j + 1"` because that can overflow the shift
|
||||
* operator, which doesn't do what we need, at least on x86. */
|
||||
rev_bit_index <<= j;
|
||||
rev_bit_index <<= 1;
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ ccl_device_noinline void svm_node_tex_image_box(KernelGlobals kg,
|
||||
* The `Nxyz` values are the barycentric coordinates in an equilateral
|
||||
* triangle, which in case of blending, in the middle has a smaller
|
||||
* equilateral triangle where 3 textures blend. this divides things into
|
||||
* 7 zones, with an if() test for each zone. */
|
||||
* 7 zones, with an `if()` test for each zone. */
|
||||
|
||||
float3 weight = make_float3(0.0f, 0.0f, 0.0f);
|
||||
const float blend = __int_as_float(node.w);
|
||||
|
||||
@@ -66,8 +66,8 @@ class Pass : public Node {
|
||||
bool is_written() const;
|
||||
|
||||
protected:
|
||||
/* The has been created automatically as a requirement to various rendering functionality (such
|
||||
* as adaptive sampling). */
|
||||
/* This has been created automatically as a requirement to various rendering functionality
|
||||
* (such as adaptive sampling). */
|
||||
bool is_auto_;
|
||||
|
||||
public:
|
||||
|
||||
@@ -555,7 +555,7 @@ extern GHOST_TSuccess GHOST_SetDrawingContextType(GHOST_WindowHandle windowhandl
|
||||
GHOST_TDrawingContextType type);
|
||||
|
||||
/**
|
||||
* Returns the drawing context used in the this window.
|
||||
* Returns the drawing context used by this window.
|
||||
* \param windowhandle: The handle to the window.
|
||||
* \return The window drawing context.
|
||||
*/
|
||||
|
||||
@@ -3603,7 +3603,7 @@ static void data_device_handle_drop(void *data, wl_data_device * /*wl_data_devic
|
||||
* Failure to set this to a known type just means the file won't have any special handling.
|
||||
* GHOST still generates a dropped file event.
|
||||
* NOTE: this string can be compared with `mime_text_plain`, `mime_text_uri` etc...
|
||||
* as the this always points to the same values. */
|
||||
* as this always points to the same values. */
|
||||
const char *mime_receive = "";
|
||||
for (size_t i = 0; i < ARRAY_SIZE(ghost_wl_mime_preference_order); i++) {
|
||||
const char *type = ghost_wl_mime_preference_order[i];
|
||||
@@ -7691,7 +7691,7 @@ GHOST_SystemWayland::GHOST_SystemWayland(const bool background)
|
||||
gwl_display_event_thread_create(display_);
|
||||
}
|
||||
/* Could be null in background mode, however there are enough
|
||||
* references to this that it's safer to create it. */
|
||||
* references to the timer-manager that it's safer to create it. */
|
||||
display_->ghost_timer_manager = new GHOST_TimerManager();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1342,9 +1342,9 @@ GHOST_EventKey *GHOST_SystemWin32::processKeyEvent(GHOST_WindowWin32 *window, RA
|
||||
}
|
||||
}
|
||||
|
||||
/* We used to check `if (key != GHOST_kKeyUnknown)`, but since the message
|
||||
* values `WM_SYSKEYUP`, `WM_KEYUP` and `WM_CHAR` are ignored, we capture
|
||||
* those events here as well. */
|
||||
/* We used to check `if (key != GHOST_kKeyUnknown)`, however,
|
||||
* given the message values `WM_SYSKEYUP`, `WM_KEYUP` and `WM_CHAR` are ignored,
|
||||
* we capture those events here as well. */
|
||||
if (!is_repeated_modifier) {
|
||||
char utf8_char[6] = {0};
|
||||
BYTE state[256];
|
||||
|
||||
@@ -1177,7 +1177,7 @@ GHOST_TSuccess GHOST_WindowCocoa::setWindowCursorGrab(GHOST_TGrabCursorMode mode
|
||||
{
|
||||
@autoreleasepool {
|
||||
if (mode != GHOST_kGrabDisable) {
|
||||
/* No need to perform grab without warp as it is always on in OS X. */
|
||||
/* No need to perform grab without warp as it is always enabled in OS X. */
|
||||
if (mode != GHOST_kGrabNormal) {
|
||||
@autoreleasepool {
|
||||
m_systemCocoa->getCursorPosition(m_cursorGrabInitPos[0], m_cursorGrabInitPos[1]);
|
||||
|
||||
Reference in New Issue
Block a user