Cleanup: consistently hyphenate the term "swap-chain"
This commit is contained in:
@@ -1288,19 +1288,19 @@ int GHOST_XrGetControllerModelData(GHOST_XrContextHandle xr_context,
|
||||
void GHOST_GetVulkanHandles(GHOST_ContextHandle context, GHOST_VulkanHandles *r_handles);
|
||||
|
||||
/**
|
||||
* Set the pre and post callbacks for vulkan swap chain in the given context.
|
||||
* Set the pre and post callbacks for vulkan swap-chain in the given context.
|
||||
*
|
||||
* \param context: GHOST context handle of a vulkan context to
|
||||
* get the Vulkan handles from.
|
||||
* \param swap_buffers_pre_callback: Function pointer to be called at the beginning of swapBuffers.
|
||||
* Inside this callback the next swap chain image needs to be acquired and filled.
|
||||
* Inside this callback the next swap-chain image needs to be acquired and filled.
|
||||
* \param swap_buffers_post_callback: Function to be called at th end of swapBuffers. swapBuffers
|
||||
* can recreate the swap chain. When this is done the application should be informed by those
|
||||
* can recreate the swap-chain. When this is done the application should be informed by those
|
||||
* changes.
|
||||
* \param openxr_acquire_image_callback: Function to be called when an image needs to be acquired
|
||||
* to be drawn to an OpenXR swap chain.
|
||||
* to be drawn to an OpenXR swap-chain.
|
||||
* \param openxr_release_image_callback: Function to be called after an image has been drawn to the
|
||||
* OpenXR swap chain.
|
||||
* OpenXR swap-chain.
|
||||
*/
|
||||
void GHOST_SetVulkanSwapBuffersCallbacks(
|
||||
GHOST_ContextHandle context,
|
||||
@@ -1310,7 +1310,7 @@ void GHOST_SetVulkanSwapBuffersCallbacks(
|
||||
void (*openxr_release_image_callback)(GHOST_VulkanOpenXRData *));
|
||||
|
||||
/**
|
||||
* Acquire the current swap chain format.
|
||||
* Acquire the current swap-chain format.
|
||||
*
|
||||
* \param windowhandle: GHOST window handle to a window to get the resource from.
|
||||
* \param r_surface_format: After calling this function the VkSurfaceFormatKHR
|
||||
|
||||
@@ -72,7 +72,7 @@ class GHOST_IContext {
|
||||
virtual GHOST_TSuccess getVulkanHandles(GHOST_VulkanHandles &r_handles) = 0;
|
||||
|
||||
/**
|
||||
* Acquire the current swap chain format.
|
||||
* Acquire the current swap-chain format.
|
||||
*
|
||||
* \param windowhandle: GHOST window handle to a window to get the resource from.
|
||||
* \param r_surface_format: After calling this function the VkSurfaceFormatKHR
|
||||
@@ -87,20 +87,20 @@ class GHOST_IContext {
|
||||
GHOST_VulkanSwapChainData *r_swap_chain_data) = 0;
|
||||
|
||||
/**
|
||||
* Set the pre and post callbacks for vulkan swap chain in the given context.
|
||||
* Set the pre and post callbacks for vulkan swap-chain in the given context.
|
||||
*
|
||||
* \param context: GHOST context handle of a vulkan context to
|
||||
* get the Vulkan handles from.
|
||||
* \param swap_buffers_pre_callback: Function pointer to be called at the beginning of
|
||||
* swapBuffers. Inside this callback the next swap chain image needs to be acquired and
|
||||
* swapBuffers. Inside this callback the next swap-chain image needs to be acquired and
|
||||
* filled.
|
||||
* \param swap_buffers_post_callback: Function to be called at th end of swapBuffers.
|
||||
* swapBuffers can recreate the swap chain. When this is done the application should be
|
||||
* swapBuffers can recreate the swap-chain. When this is done the application should be
|
||||
* informed by those changes.
|
||||
* \param openxr_acquire_image_callback: Function to be called when an
|
||||
* image needs to be acquired to be drawn to an OpenXR swap chain.
|
||||
* image needs to be acquired to be drawn to an OpenXR swap-chain.
|
||||
* \param openxr_release_image_callback: Function to be called after an image has been drawn to
|
||||
* the OpenXR swap chain.
|
||||
* the OpenXR swap-chain.
|
||||
*/
|
||||
virtual GHOST_TSuccess setVulkanSwapBuffersCallbacks(
|
||||
std::function<void(const GHOST_VulkanSwapChainData *)> swap_buffers_pre_callback,
|
||||
|
||||
@@ -804,7 +804,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
/** Image handle to the image that will be presented to the user. */
|
||||
VkImage image;
|
||||
/** Format of the swap chain. */
|
||||
/** Format of the swap-chain. */
|
||||
VkSurfaceFormatKHR surface_format;
|
||||
/** Resolution of the image. */
|
||||
VkExtent2D extent;
|
||||
|
||||
@@ -632,7 +632,7 @@ GHOST_TSuccess GHOST_ContextVK::swapBuffers()
|
||||
bool use_hdr_swapchain = false;
|
||||
#ifdef WITH_GHOST_WAYLAND
|
||||
/* Wayland doesn't provide a WSI with windowing capabilities, therefore cannot detect whether the
|
||||
* swap-chain needs to be recreated. But as a side effect we can recreate the swap chain before
|
||||
* swap-chain needs to be recreated. But as a side effect we can recreate the swap-chain before
|
||||
* presenting. */
|
||||
if (m_wayland_window_info) {
|
||||
const bool recreate_swapchain =
|
||||
@@ -680,7 +680,7 @@ GHOST_TSuccess GHOST_ContextVK::swapBuffers()
|
||||
if (m_swapchain == VK_NULL_HANDLE) {
|
||||
CLOG_TRACE(
|
||||
&LOG,
|
||||
"Swapchain invalid (due to minimized window), perform rendering to reduce render graph "
|
||||
"Swap-chain invalid (due to minimized window), perform rendering to reduce render graph "
|
||||
"resources.");
|
||||
GHOST_VulkanSwapChainData swap_chain_data = {};
|
||||
if (swap_buffers_pre_callback_) {
|
||||
@@ -694,7 +694,7 @@ GHOST_TSuccess GHOST_ContextVK::swapBuffers()
|
||||
}
|
||||
|
||||
CLOG_DEBUG(&LOG,
|
||||
"Acquired swapchain image (render_frame=%lu, image_index=%u)",
|
||||
"Acquired swap-chain image (render_frame=%lu, image_index=%u)",
|
||||
m_render_frame,
|
||||
image_index);
|
||||
GHOST_SwapchainImage &swapchain_image = m_swapchain_images[image_index];
|
||||
@@ -736,7 +736,7 @@ GHOST_TSuccess GHOST_ContextVK::swapBuffers()
|
||||
}
|
||||
if (present_result != VK_SUCCESS) {
|
||||
CLOG_ERROR(&LOG,
|
||||
"Vulkan: failed to present swap chain image : %s",
|
||||
"Vulkan: failed to present swap-chain image : %s",
|
||||
vulkan_error_as_string(present_result));
|
||||
}
|
||||
|
||||
@@ -1049,8 +1049,8 @@ GHOST_TSuccess GHOST_ContextVK::recreateSwapchain(bool use_hdr_swapchain)
|
||||
}
|
||||
}
|
||||
|
||||
/* Swapchains with out any resolution should not be created. In the case the render extent is
|
||||
* zero we should not use the swap chain.
|
||||
/* Swap-chains with out any resolution should not be created. In the case the render extent is
|
||||
* zero we should not use the swap-chain.
|
||||
*
|
||||
* VUID-VkSwapchainCreateInfoKHR-imageExtent-01689
|
||||
*/
|
||||
|
||||
@@ -71,7 +71,7 @@ struct GHOST_SwapchainImage {
|
||||
VkImage vk_image = VK_NULL_HANDLE;
|
||||
|
||||
/**
|
||||
* Semaphore for presenting; being signaled 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;
|
||||
|
||||
@@ -84,7 +84,7 @@ struct GHOST_Frame {
|
||||
* frame can acquire a new image and the semaphores can be reused.
|
||||
*/
|
||||
VkFence submission_fence = VK_NULL_HANDLE;
|
||||
/** Semaphore for acquiring; being signaled 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;
|
||||
|
||||
GHOST_FrameDiscard discard_pile;
|
||||
|
||||
@@ -507,7 +507,7 @@ void GHOST_XrGraphicsBindingVulkan::submitToSwapchainImageCpu(
|
||||
nullptr};
|
||||
vkBeginCommandBuffer(vk_command_buffer, &vk_command_buffer_begin_info);
|
||||
|
||||
/* Transfer imported render result & swap chain image (UNDEFINED -> GENERAL) */
|
||||
/* Transfer imported render result & swap-chain image (UNDEFINED -> GENERAL). */
|
||||
VkImageMemoryBarrier vk_image_memory_barrier = {VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
|
||||
nullptr,
|
||||
0,
|
||||
@@ -694,7 +694,7 @@ void GHOST_XrGraphicsBindingVulkan::submitToSwapchainImageGpu(
|
||||
nullptr};
|
||||
vkBeginCommandBuffer(vk_command_buffer, &vk_command_buffer_begin_info);
|
||||
|
||||
/* Transfer imported render result & swap chain image (UNDEFINED -> GENERAL) */
|
||||
/* Transfer imported render result & swap-chain image (UNDEFINED -> GENERAL). */
|
||||
VkImageMemoryBarrier vk_image_memory_barrier[] = {{VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER,
|
||||
nullptr,
|
||||
0,
|
||||
|
||||
Reference in New Issue
Block a user