Bug 256721

Summary: [WebGPU] Initial WGSL support for texture_external
Product: WebKit Reporter: Mike Wyrzykowski <mwyrzykowski>
Component: WebGPUAssignee: Tadeu Zagallo <tzagallo>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Mike Wyrzykowski 2023-05-12 10:45:19 PDT
WGSL support for texture_external: https://gpuweb.github.io/gpuweb/wgsl/#external-texture-type

In order to support this, use of "texture_external nameForT" will likely need to generate the following information in the argument buffer at a minimum:

texture2d<half> nameForT_FirstPlane;
texture2d<half> nameForT_SecondPlane;
float3x3 nameForT_UVRemapMatrix;
float4x3 nameForT_ColorSpaceConversionMatrix;


texture_external can only be used with textureLoad or textureSampleBaseClampToEdge. I will write up separate issues for those.
Comment 1 Radar WebKit Bug Importer 2023-05-12 10:45:43 PDT
<rdar://problem/109270814>
Comment 2 Tadeu Zagallo 2023-05-15 07:18:59 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13878
Comment 3 EWS 2023-05-17 00:28:40 PDT
Committed 264138@main (030158c424b9): <https://commits.webkit.org/264138@main>

Reviewed commits have been landed. Closing PR #13878 and removing active labels.