google / google/amber

Add RenderPass support?

Open
#715 5 comments 0 reactions 0 assignees View on GitHub
amberscript enhancement
Dominant language
C++
Stars
228
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Currently a pipeline in amber stores a VkRenderPass and then creates a Pipeline in that pass when we execute the draw call. Effectively, each pipeline has an individual renderpass.

It is possible for multiple pipelines to be in a given renderpass. Should we expose this feature through Amber or have it tested in other ways?

Sketch of Amberscript:

```
RENDERPASS pass
BIND BUFFER framebuffer AS color LOCATION 0
END

BUFFER framebuffer FORMAT B8G8R8A8_UNORM

PIPELINE graphics my_pipeline
ATTACH vert_shader
ATTACH frag_shader

RENDERPASS pass
END

PIPELINE graphics my_pipeline2
ATTACH vert_shader
ATTACH frag_shader

RENDERPASS pass
END
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.