Fix particles on WebGPU to respect format support flags properly

This commit is contained in:
Wojtek Figat
2026-03-02 23:06:01 +01:00
parent 3b2015e816
commit 23ebb0e754
10 changed files with 171 additions and 72 deletions

View File

@@ -658,7 +658,10 @@ bool GPUDeviceDX11::Init()
}
UINT formatSupport = 0;
_device->CheckFormatSupport(dxgiFormat, &formatSupport);
FeaturesPerFormat[i] = FormatFeatures((MSAALevel)maxCount, (FormatSupport)formatSupport);
FormatSupport support = (FormatSupport)formatSupport;
if (EnumHasAllFlags(support, FormatSupport::ShaderLoad))
support |= FormatSupport::UnorderedAccess;
FeaturesPerFormat[i] = FormatFeatures((MSAALevel)maxCount, support);
}
// Driver extensions support