gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 548 forks source link

Add image usage parameter to the view creation #3725

Closed kvark closed 3 years ago

kvark commented 3 years ago

Closes #3659 PR checklist:

kvark commented 3 years ago

It's not useful for wgpu right now, clearly, since WebGPU's views don't know about the usage. Other clients, including gfx-portability (via KHR_Maintenance2) can specify the usage per view, which allows both the Vulkan driver to make better decisions, and our DX11/DX12 implementations to avoid creating unnecessary SRV/UAV/RTV/DSV stuff.

bors[bot] commented 3 years ago

Build succeeded:

cwfitzgerald commented 3 years ago

Ah, sounds useful, thanks!