Cleanup: spelling in comments (make check_spelling_*)

This commit is contained in:
Campbell Barton
2025-04-02 03:02:01 +00:00
parent f89cf19ba6
commit 90fd070c28
6 changed files with 13 additions and 13 deletions

View File

@@ -861,13 +861,13 @@ Currently this depends on WITH_GHOST_WAYLAND and the weston compositor \
)
option(WITH_LINUX_OFFICIAL_RELEASE_TESTS "\
Enable sanity check tests for the linux official release. \
These test are only relevant for checking that our offical Linux releases are portable and \
These test are only relevant for checking that our official Linux releases are portable and \
packaged properly. For example that we don't link to any unexpected system libraries."
OFF
)
else()
set(WITH_UI_TESTS_HEADLESS OFF)
# TODO: We should probaby add more sanity checks for Windows and Mac as well
# TODO: We should probably add more sanity checks for Windows and Mac as well
set(WITH_LINUX_OFFICIAL_RELEASE_TESTS OFF)
endif()

View File

@@ -317,7 +317,7 @@ class GHOST_DeviceVK {
device_create_info_p_next = &maintenance_4;
}
/* Swapchain maintenance 1 is optional. */
/* Swap-chain maintenance 1 is optional. */
VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT swapchain_maintenance_1 = {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SWAPCHAIN_MAINTENANCE_1_FEATURES_EXT, nullptr, VK_TRUE};
if (extension_requested(VK_EXT_SWAPCHAIN_MAINTENANCE_1_EXTENSION_NAME)) {
@@ -553,7 +553,7 @@ GHOST_TSuccess GHOST_ContextVK::swapBuffers()
GHOST_Frame &frame_data = m_frame_data[m_render_frame];
/* Wait for the previous time this frame was used to be finished rendering. Presenting can still
* happen in parallel, but acquiring needs can only happen when the frame acquire semaphore has
* been signalled and waited for. */
* been signaled and waited for. */
vkWaitForFences(device, 1, &frame_data.submission_fence, true, UINT64_MAX);
frame_data.discard_pile.destroy(device);
@@ -751,7 +751,7 @@ static GHOST_TSuccess selectPresentMode(VkPhysicalDevice device,
}
/*FIFO present mode is always available and we (should) prefer it as it will keep the main loop
* running along the monitor refresh rate. Mailbox and Fifo relaxed can generate a lot of frames
* running along the monitor refresh rate. Mailbox and FIFO relaxed can generate a lot of frames
* that will never be displayed. */
*r_presentMode = VK_PRESENT_MODE_FIFO_KHR;
return GHOST_kSuccess;

View File

@@ -73,14 +73,14 @@ struct GHOST_FrameDiscard {
struct GHOST_Frame {
/**
* Fence signalled when "previous" use of the frame has finished rendering. When signalled the
* Fence signaled when "previous" use of the frame has finished rendering. When signaled the
* frame can acquire a new image and the semaphores can be reused.
*/
VkFence submission_fence = VK_NULL_HANDLE;
/** Semaphore for acquiring; being signalled when the swap chain image is ready to be updated. */
/** Semaphore for acquiring; being signaled when the swap chain image is ready to be updated. */
VkSemaphore acquire_semaphore = VK_NULL_HANDLE;
/**
* Semaphore for presenting; being signalled when the swap chain image is ready to be presented.
* Semaphore for presenting; being signaled when the swap chain image is ready to be presented.
*/
VkSemaphore present_semaphore = VK_NULL_HANDLE;

View File

@@ -650,7 +650,7 @@ GLFence::~GLFence()
void GLFence::signal()
{
/* If fence is already signalled, create a newly signalled fence primitive. */
/* If fence is already signaled, create a newly signaled fence primitive. */
if (gl_sync_) {
glDeleteSync(gl_sync_);
}

View File

@@ -1698,13 +1698,13 @@ void PyC_StdFilesFlush()
* different because the original code uses some internal APIs.
*
* This is approximately equivalent to:
* ```
* \code{.py}
* try:
* sys.stdout.flush()
* sys.stderr.flush()
* except Exception:
* pass
* ```
* \endcode
*/
PyObject *py_flush = PyUnicode_FromString("flush");
BLI_assert(py_flush);

View File

@@ -217,8 +217,8 @@ static bool python_script_exec(
PyC_MainModule_Restore(main_mod);
/* Flush stdout/stderr to ensure the script output is visible.
* Using fflush(stdout) does not solve it. */
/* Flush `stdout` & `stderr` to ensure the script output is visible.
* Using `fflush(stdout)` does not solve it. */
PyC_StdFilesFlush();
bpy_context_clear(C, &gilstate);