Skip to content

Commit 14c998b

Browse files
authored
Merge pull request #325 from asuessenbach/07_image_views
Align docu in 02_Image_Views.adoc and the sources in 07_image_views.cpp
2 parents 2b21d58 + 9b3c36a commit 14c998b

28 files changed

Lines changed: 119 additions & 97 deletions

attachments/07_image_views.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ class HelloTriangleApplication
285285
{
286286
assert(swapChainImageViews.empty());
287287

288-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
288+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
289+
.format = swapChainSurfaceFormat.format,
290+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
289291
for (auto &image : swapChainImages)
290292
{
291293
imageViewCreateInfo.image = image;

attachments/08_graphics_pipeline.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,9 @@ class HelloTriangleApplication
286286
{
287287
assert(swapChainImageViews.empty());
288288

289-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
289+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
290+
.format = swapChainSurfaceFormat.format,
291+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
290292
for (auto &image : swapChainImages)
291293
{
292294
imageViewCreateInfo.image = image;

attachments/09_shader_modules.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ class HelloTriangleApplication
294294
{
295295
assert(swapChainImageViews.empty());
296296

297-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
297+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
298+
.format = swapChainSurfaceFormat.format,
299+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
298300
for (auto &image : swapChainImages)
299301
{
300302
imageViewCreateInfo.image = image;

attachments/10_fixed_functions.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ class HelloTriangleApplication
296296
{
297297
assert(swapChainImageViews.empty());
298298

299-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
299+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
300+
.format = swapChainSurfaceFormat.format,
301+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
300302
for (auto &image : swapChainImages)
301303
{
302304
imageViewCreateInfo.image = image;

attachments/12_graphics_pipeline_complete.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ class HelloTriangleApplication
297297
{
298298
assert(swapChainImageViews.empty());
299299

300-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
300+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
301+
.format = swapChainSurfaceFormat.format,
302+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
301303
for (auto &image : swapChainImages)
302304
{
303305
imageViewCreateInfo.image = image;

attachments/14_command_buffers.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ class HelloTriangleApplication
301301
{
302302
assert(swapChainImageViews.empty());
303303

304-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
304+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
305+
.format = swapChainSurfaceFormat.format,
306+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
305307
for (auto &image : swapChainImages)
306308
{
307309
imageViewCreateInfo.image = image;

attachments/15_hello_triangle.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ class HelloTriangleApplication
310310
{
311311
assert(swapChainImageViews.empty());
312312

313-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
313+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
314+
.format = swapChainSurfaceFormat.format,
315+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
314316
for (auto &image : swapChainImages)
315317
{
316318
imageViewCreateInfo.image = image;

attachments/16_frames_in_flight.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ class HelloTriangleApplication
313313
{
314314
assert(swapChainImageViews.empty());
315315

316-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
316+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
317+
.format = swapChainSurfaceFormat.format,
318+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
317319
for (auto &image : swapChainImages)
318320
{
319321
imageViewCreateInfo.image = image;

attachments/17_swap_chain_recreation.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ class HelloTriangleApplication
346346
{
347347
assert(swapChainImageViews.empty());
348348

349-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
349+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
350+
.format = swapChainSurfaceFormat.format,
351+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
350352
for (auto &image : swapChainImages)
351353
{
352354
imageViewCreateInfo.image = image;

attachments/19_vertex_buffer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,9 @@ class HelloTriangleApplication
370370
{
371371
assert(swapChainImageViews.empty());
372372

373-
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D, .format = swapChainSurfaceFormat.format, .subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
373+
vk::ImageViewCreateInfo imageViewCreateInfo{.viewType = vk::ImageViewType::e2D,
374+
.format = swapChainSurfaceFormat.format,
375+
.subresourceRange = {vk::ImageAspectFlagBits::eColor, 0, 1, 0, 1}};
374376
for (auto &image : swapChainImages)
375377
{
376378
imageViewCreateInfo.image = image;

0 commit comments

Comments
 (0)