File tree Expand file tree Collapse file tree
03_Drawing_a_triangle/02_Graphics_pipeline_basics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ multisampling.sType = VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO;
213213multisampling.sampleShadingEnable = VK_FALSE;
214214multisampling.rasterizationSamples = VK_SAMPLE_COUNT_1_BIT;
215215multisampling.minSampleShading = 1 .0f ; // Optional
216- multisampling.pSampleMask = nullptr ; // / Optional
216+ multisampling.pSampleMask = nullptr ; // Optional
217217multisampling.alphaToCoverageEnable = VK_FALSE; // Optional
218218multisampling.alphaToOneEnable = VK_FALSE; // Optional
219219```
@@ -301,7 +301,7 @@ You can find all of the possible operations in the `VkBlendFactor` and
301301
302302The second structure references the array of structures for all of the
303303framebuffers and allows you to set blend constants that you can use as blend
304- factors in the aforementioned calculations.
304+ factors in the aforementioned calculations.
305305
306306``` c++
307307VkPipelineColorBlendStateCreateInfo colorBlending = {};
@@ -408,4 +408,4 @@ graphics pipeline and that is a [render pass](!Drawing_a_triangle/Graphics_pipel
408408
409409[ C++ code] ( /code/fixed_functions.cpp ) /
410410[ Vertex shader] ( /code/shader_base.vert ) /
411- [ Fragment shader] ( /code/shader_base.frag )
411+ [ Fragment shader] ( /code/shader_base.frag )
Original file line number Diff line number Diff line change @@ -41,8 +41,9 @@ void createRenderPass() {
4141}
4242```
4343
44- The ` format ` of the color attachment should match the one of the swap chain
45- images and we're not doing anything with multisampling, so we stick to 1 sample.
44+ The ` format ` of the color attachment should match the format of the swap chain
45+ images, and we're not doing anything with multisampling, so we'll stick to 1
46+ sample.
4647
4748``` c++
4849colorAttachment.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR;
@@ -211,4 +212,4 @@ create the graphics pipeline object!
211212
212213[ C++ code] ( /code/render_passes.cpp ) /
213214[ Vertex shader] ( /code/shader_base.vert ) /
214- [ Fragment shader] ( /code/shader_base.frag )
215+ [ Fragment shader] ( /code/shader_base.frag )
You can’t perform that action at this time.
0 commit comments