google / amber

Amber is a multi-API shader test framework
Apache License 2.0
193 stars 65 forks source link

Use shared transfer buffers #951

Closed ilkkasaa closed 3 years ago

ilkkasaa commented 3 years ago

Descriptors were using separate transfer buffers when they were using same buffer. This prevented e.g. using the same buffer in multiple storage buffer bindings.

This commit moves the transfer buffer/image ownership from descriptors to pipeline to allow descriptors to share the transfer buffers. Now the descriptors can have the same buffer binding even if the descriptors are of different types e.g. storage/uniform/storage_texel_buffer etc.

Fixes #950