File tree Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Expand file tree Collapse file tree 1 file changed +0
-32
lines changed Original file line number Diff line number Diff 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
257225daxa::BufferViewId src = ...;
You can’t perform that action at this time.
0 commit comments