google / amber

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

Add ability to use same buffer in multiple bindings #950

Closed ilkkasaa closed 3 years ago

ilkkasaa commented 3 years ago

Buffer descriptor offsets and ranges are now supported, so it makes sense to bind one buffer to multiple bindings. For example the following is not allowed currently:

BIND BUFFER buf0 AS storage DESCRIPTOR_SET 0 BINDING 0
BIND BUFFER buf0 AS storage DESCRIPTOR_SET 0 BINDING 1 DESCRIPTOR_OFFSET 256