amber
amber copied to clipboard
Support more image types
It appears Amber only supports 2D images currently. It would be nice to support:
- 1D
- 3D
- Cube
- Arrayed
Amber probably needs a way to declare a buffer as a specific image type.
Amberscript additions:
- add IMAGE command that takes image parameters, but creates a buffer
IMAGE <name> (1D|2D|3D|Cube) [ARRAYED] [MULTISAMPLED] \
WIDTH <w> [HEIGHT <h> [DEPTH <d>]] [ARRAY_LAYERS <a>] \
<buffer initializers>
Names subject to change, but this new command allows for simple parsing and image creation on the vulkan side. It is convenient to reuse buffer from the internal side since they are not fundamentally different.