Skip to content

Rename a varialbe to avoid confusion and fix a comment typo#1276

Open
th3or14 wants to merge 1 commit into
SaschaWillems:masterfrom
th3or14:master
Open

Rename a varialbe to avoid confusion and fix a comment typo#1276
th3or14 wants to merge 1 commit into
SaschaWillems:masterfrom
th3or14:master

Conversation

@th3or14

@th3or14 th3or14 commented Jun 6, 2026

Copy link
Copy Markdown

The proposed changes are for the screenshot example.

  1. I wondered why copyCmd is used for both copying and blitting. Such variable name gave me a wrong impression that copying is used in the blitting case. But copyCmd is just a command buffer used in both cases. I think it's better to rename to something like cmdBuffer to avoid confusion. Since there is already cmdBuffer from another scope yet in the same file used inside buildCommandBuffer(), I suggest transferCmdBuffer.

  2. Change date to data in the comment // Getting the image date directly from a swapchain image wouldn't work as they're usually stored in an implementation dependent optimal tiling format.

@th3or14 th3or14 changed the title Rename a vairalbe to avoid confusion and fix a comment typo Rename a varialbe to avoid confusion and fix a comment typo Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant