Skip to content

Commit a4adb32

Browse files
committed
Close #103
1 parent fe684e1 commit a4adb32

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

bookcontents/chapter-08/chapter-08.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2353,7 +2353,18 @@ public class Render {
23532353
```
23542354

23552355
The `init` method, also loads materials, textures,m models and ends up invoking `loadMaterials` in the `ScnRender` class to create
2356-
the proper descriptor sets.
2356+
the proper descriptor sets. `InitData` class needs to be updated to support the addition of materials like this:
2357+
2358+
```java
2359+
package org.vulkanb.eng;
2360+
2361+
import org.vulkanb.eng.model.*;
2362+
2363+
import java.util.List;
2364+
2365+
public record InitData(List<ModelData> models, List<MaterialData> materials) {
2366+
}
2367+
```
23572368

23582369
We need to change we load the models in the `Main` class. Instead of defining the data in the `init` method we just use the `ModelLoader`
23592370
`loadModel` and `loadMaterials` methods to load the data:

0 commit comments

Comments
 (0)