Updated some dx12 code format#2873
Conversation
4b4881f to
2dc58f4
Compare
clang-formatclang-format
| std::pair<UINT, UINT> GetSwapchainDimensions() | ||
| { | ||
| return {swapchain_width_, swapchain_height_}; | ||
| } |
There was a problem hiding this comment.
Inconsistent formatting changes here compared to other changes.
|
@zongdu-arm I recommend we don't approve changes that are just cosmetic/formatting. Can you tell me why it's important to make these changes? Thanks! |
@bradgrantham-lunarg , Because your CI doesn't check code style, the some submitted code is formatted haphazardly. |
Thanks for bringing this up! While responding to you I found inconsistencies and did a deep dive on our GitHub code style check. We do check code style (see .github/workflows/ci_build.yml) but our code check has been in only Ubuntu GCC since its addition 6 years ago before I joined the project! (7dc788f) So our GitHub PR checks weren't checking the DX12 sources. I've added PR 2882 to also check style in the Windows build. I believe it is still good policy to not merge bare commits whose only change is style. It complicates the git history and adds a step to I think it's helpful to always ask "what substantive change does this commit add that someone reading through the source will take away?" If there is none, then maybe the change should not be committed. Having to read a change and understand that it makes no functional change takes time both in commands ( |
2dc58f4 to
38ed348
Compare
clang-format
Updated some dx12 code with the
clang-format, reduce some conflicts in the fork branch.