amber icon indicating copy to clipboard operation
amber copied to clipboard

Support more image types

Open alan-baker opened this issue 5 years ago • 1 comments

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.

alan-baker avatar Dec 09 '19 16:12 alan-baker

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.

alan-baker avatar Dec 10 '19 15:12 alan-baker