aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2025-04-21 17:09:23 -0500
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2025-04-21 17:00:14 -0600
commit7ef5a8961fe6d295792ee3b23e249f0f02035e7a (patch)
tree1ffbfb531603db797f0acb86391d4bb4d85efc75
parentb1fc6158fd3da69cd16b1e261e0e84f1f3bed89f (diff)
downloadusermoji-7ef5a8961fe6d295792ee3b23e249f0f02035e7a.tar.xz
cube: Update formatting to clang-format-18
-rw-r--r--cube/cube.c9
-rw-r--r--cube/cube.cpp7
2 files changed, 8 insertions, 8 deletions
diff --git a/cube/cube.c b/cube/cube.c
index ce361d33..c1f8a655 100644
--- a/cube/cube.c
+++ b/cube/cube.c
@@ -1704,19 +1704,16 @@ bool loadTexture(const char *filename, uint8_t *rgba_data, VkSubresourceLayout *
if ((unsigned char *)cPtr >= (lunarg_ppm + lunarg_ppm_len) || strncmp(cPtr, "P6\n", 3)) {
return false;
}
- while (strncmp(cPtr++, "\n", 1))
- ;
+ while (strncmp(cPtr++, "\n", 1));
sscanf(cPtr, "%u %u", width, height);
if (rgba_data == NULL) {
return true;
}
- while (strncmp(cPtr++, "\n", 1))
- ;
+ while (strncmp(cPtr++, "\n", 1));
if ((unsigned char *)cPtr >= (lunarg_ppm + lunarg_ppm_len) || strncmp(cPtr, "255\n", 4)) {
return false;
}
- while (strncmp(cPtr++, "\n", 1))
- ;
+ while (strncmp(cPtr++, "\n", 1));
for (int y = 0; y < *height; y++) {
uint8_t *rowPtr = rgba_data;
for (int x = 0; x < *width; x++) {
diff --git a/cube/cube.cpp b/cube/cube.cpp
index ec292436..d31fdf3d 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -1896,7 +1896,9 @@ void Demo::select_physical_device() {
exit(1);
}
#else
- printf("WSI selection was set to DISPLAY but vkcubepp was not compiled with support for the DISPLAY platform, exiting \n");
+ printf(
+ "WSI selection was set to DISPLAY but vkcubepp was not compiled with support for the DISPLAY platform, exiting "
+ "\n");
fflush(stdout);
exit(1);
#endif
@@ -2975,7 +2977,8 @@ void Demo::resize() {
// In order to properly resize the window, we must re-create the
// swapchain
//
- // First, destroy the old swapchain and its associated resources, setting swapchain_ready to false to prevent draw from running
+ // First, destroy the old swapchain and its associated resources, setting swapchain_ready to false to prevent draw from
+ // running
if (swapchain_ready) {
swapchain_ready = false;
auto result = device.waitIdle();