On Thu, Jul 21, 2022 at 2:45 AM Henri Verbeet <hverbeet@gmail.com> wrote:
Where this breaks down is component counts;
image_format_for_image_read() assumes single component formats, in
part because that's all that was originally required. These additional
multi-component formats are an optional feature, see also
"TypedUAVLoadAdditionalFormats" from D3D12_FEATURE_DATA_D3D12_OPTIONS.

TypedUAVLoadAdditionalFormats refers to the "if any one is supported, all are supported" set in:
https://docs.microsoft.com/en-us/windows/win32/direct3d12/typed-unordered-access-view-loads 

These are all vec4 formats. We currently don't set D3D12_FORMAT_SUPPORT2_UAV_TYPED_LOAD for any formats, so the formats with component count < 4 are not supported. Would that be a separate patch series?