Bug 256721 - [WebGPU] Initial WGSL support for texture_external
Summary: [WebGPU] Initial WGSL support for texture_external
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tadeu Zagallo
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-12 10:45 PDT by Mike Wyrzykowski
Modified: 2023-05-17 00:28 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.