[webkit-changes] [WebKit/WebKit] dfc987: [WGSL] Fix runtime-sized array serialization
Tadeu Zagallo
noreply at github.com
Tue Jan 31 00:46:47 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: dfc987f106d844772956ffbd5148992697f9c1b2
https://github.com/WebKit/WebKit/commit/dfc987f106d844772956ffbd5148992697f9c1b2
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
Log Message:
-----------
[WGSL] Fix runtime-sized array serialization
https://bugs.webkit.org/show_bug.cgi?id=251382
<rdar://problem/104832236>
Reviewed by Myles C. Maxfield.
Previously the implementation only supported fixed size arrays. We add support
for serializing runtime-sized arrays by making it an array of size 1, since they
are only allowed at the end of the buffer.
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
Canonical link: https://commits.webkit.org/259611@main
More information about the webkit-changes
mailing list