File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -499,17 +499,17 @@ renderPass.release(); // NEW
499499```
500500
501501``` {lit} C++, Describe Render Pass (replace, hidden)
502- RenderPassColorAttachment renderPassColorAttachment = Default; // NEW
502+ RenderPassColorAttachment colorAttachment = Default; // NEW
503503{{Describe the attachment}}
504504renderPassDesc.colorAttachmentCount = 1;
505- renderPassDesc.colorAttachments = &renderPassColorAttachment ;
505+ renderPassDesc.colorAttachments = &colorAttachment ;
506506```
507507
508508``` {lit} C++, Describe the attachment (replace, hidden)
509- renderPassColorAttachment .view = targetView;
510- renderPassColorAttachment .loadOp = LoadOp::Clear; // NEW
511- renderPassColorAttachment .storeOp = StoreOp::Store; // NEW
512- renderPassColorAttachment .clearValue = Color{ 1.0, 0.8, 0.55, 1.0 }; // NEW
509+ colorAttachment .view = targetView;
510+ colorAttachment .loadOp = LoadOp::Clear; // NEW
511+ colorAttachment .storeOp = StoreOp::Store; // NEW
512+ colorAttachment .clearValue = Color{ 1.0, 0.8, 0.55, 1.0 }; // NEW
513513```
514514
515515``` {lit} C++, Finish encoding and submit (replace, hidden)
You can’t perform that action at this time.
0 commit comments