-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path08_graphics_pipeline.diff
More file actions
29 lines (26 loc) · 978 Bytes
/
08_graphics_pipeline.diff
File metadata and controls
29 lines (26 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/../steps/07_image_views/main.go b/../steps/08_graphics_pipeline/main.go
index e03d590..ae130ab 100644
--- a/../steps/07_image_views/main.go
+++ b/../steps/08_graphics_pipeline/main.go
@@ -117,7 +117,12 @@ func (app *HelloTriangleApplication) initVulkan() error {
return err
}
- return app.createSwapchain()
+ err = app.createSwapchain()
+ if err != nil {
+ return err
+ }
+
+ return app.createGraphicsPipeline()
}
func (app *HelloTriangleApplication) mainLoop() error {
@@ -421,6 +426,10 @@ func (app *HelloTriangleApplication) createSwapchain() error {
return nil
}
+func (app *HelloTriangleApplication) createGraphicsPipeline() error {
+ return nil
+}
+
func (app *HelloTriangleApplication) chooseSwapSurfaceFormat(availableFormats []khr_surface.SurfaceFormat) khr_surface.SurfaceFormat {
for _, format := range availableFormats {
if format.Format == core1_0.FormatB8G8R8A8SRGB && format.ColorSpace == khr_surface.ColorSpaceSRGBNonlinear {