Skip to content

Commit 7d11df9

Browse files
committed
Fix renaming
1 parent b0af28e commit 7d11df9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

next/getting-started/cpp-wrapper.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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}}
504504
renderPassDesc.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)

0 commit comments

Comments
 (0)