In this chapter, we will cover the following recipes:
- Creating a buffer
- Allocating and binding a memory object for a buffer
- Setting a buffer memory barrier
- Creating a buffer view
- Creating an image
- Allocating and binding a memory object to an image
- Setting an image memory barrier
- Creating an image view
- Creating a 2D image and view
- Creating a layered 2D image with a CUBEMAP view
- Mapping, updating, and unmapping host-visible memory
- Copying data between buffers
- Copying data from a buffer to an image
- Copying data from an image to a buffer
- Using a staging buffer to update a buffer with a device-local memory bound
- Using a staging buffer to update an image with a device-local memory bound
- Destroying an image view
- Destroying an image
- Destroying a buffer view
- Freeing a memory object
- Destroying a buffer