[Webkit-unassigned] [Bug 256724] New: [WebGPU][WGSL] sampling a texture_external should expand to two samples
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 12 11:27:07 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=256724
Bug ID: 256724
Summary: [WebGPU][WGSL] sampling a texture_external should
expand to two samples
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebGPU
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mwyrzykowski at apple.com
In WGSL if we have:
texture_external t;
vec4<f32> result = textureSampleBaseClampToEdge(t, sampler, normalizedCoordinates);
or:
texture_external t;
vec4<f32> result = textureLoad(t, pixelCoordinates, levelOfDetail);
we should expand this to:
auto coords = t_UVRemapMatrix * normalizedCoordinates;
auto y = t_FirstPlane.sample(sampler, coords).r;
auto cbcr = t_SecondPlane.sample(sampler, coords).rg;
auto ycbcr = float3(y, cbcr);
float4 result = float4(t_ColorSpaceConversionMatrix * float4(ycbcr, 1), 1);
or:
auto coords = t_UVRemapMatrix * pixelCoordinates;
auto y = t_FirstPlane.read(coords, levelOfDetail).r;
auto cbcr = t_SecondPlane.read(sampler, levelOfDetail).rg;
auto ycbcr = float3(y, cbcr);
float4 result = float4(t_ColorSpaceConversionMatrix * float4(ycbcr, 1), 1);
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230512/b717ab4f/attachment.htm>
More information about the webkit-unassigned
mailing list