<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 21, 2022 at 2:45 AM Henri Verbeet <<a href="mailto:hverbeet@gmail.com">hverbeet@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Where this breaks down is component counts;<br>
image_format_for_image_read() assumes single component formats, in<br>
part because that's all that was originally required. These additional<br>
multi-component formats are an optional feature, see also<br>
"TypedUAVLoadAdditionalFormats" from D3D12_FEATURE_DATA_D3D12_OPTIONS.<br></blockquote><div><br></div><div>TypedUAVLoadAdditionalFormats refers to the "if any one is supported, all are supported" set in:</div><div></div><div><a href="https://docs.microsoft.com/en-us/windows/win32/direct3d12/typed-unordered-access-view-loads">https://docs.microsoft.com/en-us/windows/win32/direct3d12/typed-unordered-access-view-loads</a> </div><div><br></div><div>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?<br></div></div></div>