Skip to content

Commit eb89871

Browse files
committed
Remove garbage
1 parent 6387d06 commit eb89871

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

src/content/docs/tutorial/02 Drawing a triangle/07 Task graph.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -129,27 +129,4 @@ loop_task_graph.present({});
129129
loop_task_graph.complete({});
130130
```
131131

132-
We have now created a new task graph that can simply repeat the steps it was given,
133-
134-
## Creating a vertex uploading TaskGraph
135-
136-
Now we record a secondary task graph, that is only executed once (in our sample code). This task graph uploads data to the 'vertex buffer'. Task Graph resources automatically link between graphics at runtime, so you don't need to be concerned about the synchronization of the vertex buffer between the two graphs.
137-
138-
Because this is only executed once, we can define it in a separate context.
139-
140-
```cpp
141-
{
142-
auto upload_task_graph = daxa::TaskGraph({
143-
.device = device,
144-
.name = "upload",
145-
});
146-
147-
upload_task_graph.use_persistent_buffer(task_vertex_buffer);
148-
149-
upload_vertex_data_task(upload_task_graph, task_vertex_buffer);
150-
151-
upload_task_graph.submit({});
152-
upload_task_graph.complete({});
153-
upload_task_graph.execute({});
154-
}
155-
```
132+
We have now created a new task graph that can simply repeat the steps it was given,

0 commit comments

Comments
 (0)