mirror of
https://github.com/libsdl-org/SDL.git
synced 2024-11-23 10:53:27 +08:00
Use C++ style comments in new code
This commit is contained in:
parent
98bec6749f
commit
d4f4aa745a
@ -841,7 +841,7 @@ int BeginVulkanFrameRendering(VulkanVideoContext *context, AVFrame *frame, SDL_R
|
|||||||
|
|
||||||
VkResult result = context->vkQueueSubmit(context->graphicsQueue, 1, &submitInfo, 0);
|
VkResult result = context->vkQueueSubmit(context->graphicsQueue, 1, &submitInfo, 0);
|
||||||
if (result != VK_SUCCESS) {
|
if (result != VK_SUCCESS) {
|
||||||
/* Don't return an error here, we need to complete the frame operation */
|
// Don't return an error here, we need to complete the frame operation
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION , "vkQueueSubmit(): %s", getVulkanResultString(result));
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION , "vkQueueSubmit(): %s", getVulkanResultString(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -856,7 +856,7 @@ int FinishVulkanFrameRendering(VulkanVideoContext *context, AVFrame *frame, SDL_
|
|||||||
AVVulkanFramesContext *vk = (AVVulkanFramesContext *)(frames->hwctx);
|
AVVulkanFramesContext *vk = (AVVulkanFramesContext *)(frames->hwctx);
|
||||||
AVVkFrame *pVkFrame = (AVVkFrame *)frame->data[0];
|
AVVkFrame *pVkFrame = (AVVkFrame *)frame->data[0];
|
||||||
|
|
||||||
/* Transition the frame back to ffmpeg */
|
// Transition the frame back to ffmpeg
|
||||||
++pVkFrame->sem_value[0];
|
++pVkFrame->sem_value[0];
|
||||||
|
|
||||||
VkTimelineSemaphoreSubmitInfo timeline = { 0 };
|
VkTimelineSemaphoreSubmitInfo timeline = { 0 };
|
||||||
@ -876,7 +876,7 @@ int FinishVulkanFrameRendering(VulkanVideoContext *context, AVFrame *frame, SDL_
|
|||||||
|
|
||||||
VkResult result = context->vkQueueSubmit(context->graphicsQueue, 1, &submitInfo, 0);
|
VkResult result = context->vkQueueSubmit(context->graphicsQueue, 1, &submitInfo, 0);
|
||||||
if (result != VK_SUCCESS) {
|
if (result != VK_SUCCESS) {
|
||||||
/* Don't return an error here, we need to complete the frame operation */
|
// Don't return an error here, we need to complete the frame operation
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "vkQueueSubmit(): %s", getVulkanResultString(result));
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "vkQueueSubmit(): %s", getVulkanResultString(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user