Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d84d91

Browse files
committed
Fix code formatting inconsistencies
1 parent 4ce5e2e commit 7d84d91

10 files changed

Lines changed: 60 additions & 57 deletions

code/19_staging_buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ class HelloTriangleApplication {
656656
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
657657
bufferInfo.size = size;
658658
bufferInfo.usage = usage;
659-
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
659+
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
660660

661661
if (vkCreateBuffer(device, &bufferInfo, nullptr, &buffer) != VK_SUCCESS) {
662662
throw std::runtime_error("failed to create buffer!");

code/20_index_buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ class HelloTriangleApplication {
687687
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
688688
bufferInfo.size = size;
689689
bufferInfo.usage = usage;
690-
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
690+
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
691691

692692
if (vkCreateBuffer(device, &bufferInfo, nullptr, &buffer) != VK_SUCCESS) {
693693
throw std::runtime_error("failed to create buffer!");

code/21_descriptor_layout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ class HelloTriangleApplication {
731731
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
732732
bufferInfo.size = size;
733733
bufferInfo.usage = usage;
734-
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
734+
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
735735

736736
if (vkCreateBuffer(device, &bufferInfo, nullptr, &buffer) != VK_SUCCESS) {
737737
throw std::runtime_error("failed to create buffer!");

code/22_descriptor_set.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ class HelloTriangleApplication {
783783
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
784784
bufferInfo.size = size;
785785
bufferInfo.usage = usage;
786-
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
786+
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
787787

788788
if (vkCreateBuffer(device, &bufferInfo, nullptr, &buffer) != VK_SUCCESS) {
789789
throw std::runtime_error("failed to create buffer!");

code/23_texture_image.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ class HelloTriangleApplication {
742742
imageInfo.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
743743
imageInfo.usage = usage;
744744
imageInfo.samples = VK_SAMPLE_COUNT_1_BIT;
745-
imageInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
745+
imageInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
746746

747747
if (vkCreateImage(device, &imageInfo, nullptr, &image) != VK_SUCCESS) {
748748
throw std::runtime_error("failed to create image!");
@@ -928,7 +928,7 @@ class HelloTriangleApplication {
928928
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
929929
bufferInfo.size = size;
930930
bufferInfo.usage = usage;
931-
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
931+
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
932932

933933
if (vkCreateBuffer(device, &bufferInfo, nullptr, &buffer) != VK_SUCCESS) {
934934
throw std::runtime_error("failed to create buffer!");

code/24_sampler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ class HelloTriangleApplication {
778778
imageInfo.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
779779
imageInfo.usage = usage;
780780
imageInfo.samples = VK_SAMPLE_COUNT_1_BIT;
781-
imageInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
781+
imageInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
782782

783783
if (vkCreateImage(device, &imageInfo, nullptr, &image) != VK_SUCCESS) {
784784
throw std::runtime_error("failed to create image!");
@@ -964,7 +964,7 @@ class HelloTriangleApplication {
964964
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
965965
bufferInfo.size = size;
966966
bufferInfo.usage = usage;
967-
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
967+
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
968968

969969
if (vkCreateBuffer(device, &bufferInfo, nullptr, &buffer) != VK_SUCCESS) {
970970
throw std::runtime_error("failed to create buffer!");

code/25_texture_mapping.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ class HelloTriangleApplication {
792792
imageInfo.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
793793
imageInfo.usage = usage;
794794
imageInfo.samples = VK_SAMPLE_COUNT_1_BIT;
795-
imageInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
795+
imageInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
796796

797797
if (vkCreateImage(device, &imageInfo, nullptr, &image) != VK_SUCCESS) {
798798
throw std::runtime_error("failed to create image!");
@@ -994,7 +994,7 @@ class HelloTriangleApplication {
994994
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
995995
bufferInfo.size = size;
996996
bufferInfo.usage = usage;
997-
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
997+
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
998998

999999
if (vkCreateBuffer(device, &bufferInfo, nullptr, &buffer) != VK_SUCCESS) {
10001000
throw std::runtime_error("failed to create buffer!");

code/26_depth_buffering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ class HelloTriangleApplication {
10891089
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
10901090
bufferInfo.size = size;
10911091
bufferInfo.usage = usage;
1092-
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
1092+
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
10931093

10941094
if (vkCreateBuffer(device, &bufferInfo, nullptr, &buffer) != VK_SUCCESS) {
10951095
throw std::runtime_error("failed to create buffer!");

code/27_model_loading.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ class HelloTriangleApplication {
779779

780780
VkFormat findDepthFormat() {
781781
return findSupportedFormat(
782-
{VK_FORMAT_D32_SFLOAT, VK_FORMAT_D32_SFLOAT_S8_UINT, VK_FORMAT_D24_UNORM_S8_UINT},
782+
{VK_FORMAT_D32_SFLOAT, VK_FORMAT_D32_SFLOAT_S8_UINT, VK_FORMAT_D24_UNORM_S8_UINT},
783783
VK_IMAGE_TILING_OPTIMAL,
784784
VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT
785785
);
@@ -878,7 +878,7 @@ class HelloTriangleApplication {
878878
imageInfo.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
879879
imageInfo.usage = usage;
880880
imageInfo.samples = VK_SAMPLE_COUNT_1_BIT;
881-
imageInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
881+
imageInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
882882

883883
if (vkCreateImage(device, &imageInfo, nullptr, &image) != VK_SUCCESS) {
884884
throw std::runtime_error("failed to create image!");
@@ -1135,7 +1135,7 @@ class HelloTriangleApplication {
11351135
bufferInfo.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
11361136
bufferInfo.size = size;
11371137
bufferInfo.usage = usage;
1138-
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
1138+
bufferInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
11391139

11401140
if (vkCreateBuffer(device, &bufferInfo, nullptr, &buffer) != VK_SUCCESS) {
11411141
throw std::runtime_error("failed to create buffer!");

0 commit comments

Comments
 (0)