Skip to content

Commit 543650e

Browse files
committed
fix change
1 parent 0cffc1f commit 543650e

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/content/docs/wiki/taskgraph.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -220,38 +220,6 @@ struct MyPushStruct
220220
};
221221
```
222222
223-
```c++
224-
// within c++ file
225-
#include "shared.inl"
226-
227-
// Inherited from the partial task declared by the task head:
228-
struct MyTask : MyTaskHead::Task
229-
{
230-
// In order to allow for designated struct init in c++,
231-
// the views field can NOT be part of the partially declared task,
232-
// it must be declared here!
233-
AttachmentViews views = {};
234-
...
235-
void callback(daxa::TaskInterface ti)
236-
{
237-
ti.recorder.set_pipeline(...);
238-
ti.recorder.push_constant(MyPushStruct{
239-
.size = ...,
240-
.settings_bitfield = ...,
241-
// IMPORTANT:
242-
// You still HAVE TO assign the attachment shader blob within your push constant/buffer!
243-
// Daxa declares convenience assignment operators.
244-
// You can directly use the graph generated byte blob (ti.attachment_shader_blob)
245-
// to the push constant byte blob:
246-
.attachments = ti.attachment_shader_blob,
247-
});
248-
ti.dispatch(...);
249-
}
250-
};
251-
```
252-
253-
Example usage of the above task:
254-
255223
```c++
256224
257225
daxa::BufferViewId src = ...;

0 commit comments

Comments
 (0)