Bug 256722 - [WebGPU][WGSL] support for textureLoad and textureSampleBaseClampToEdge for external textures
Summary: [WebGPU][WGSL] support for textureLoad and textureSampleBaseClampToEdge for e...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-12 11:10 PDT by Mike Wyrzykowski
Modified: 2023-05-12 11:10 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 11:10:35 PDT
textureLoad and/or textureSampleBaseClampToEdge are required to support external textures

textureSampleBaseClampToEdge - https://www.w3.org/TR/WGSL/#textureSampleBaseClampToEdge
 => already takes a sampler so the assumption is the user has defined one in their WGSL

textureLoad(texture, pixelCoords, levelOfDetail) - https://www.w3.org/TR/WGSL/#textureload
 => does not take a sampler, one can use read on the 2d texture, e.g., in MSL
 

   texture.read(pixelCoords, levelOfDetail)
Comment 1 Radar WebKit Bug Importer 2023-05-12 11:10:59 PDT
<rdar://problem/109272220>