Bug 198985

Summary: [WHLSL] Hook up RWTextures
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 195813    
Attachments:
Description Flags
Test none

Myles C. Maxfield
Reported 2019-06-18 17:05:03 PDT
Hooking them up is tricky because writable textures don't have either default constructors or copy assignment operators in High Sierra. Therefore, we can probably model RWTextures under the "logical mode" restrictions.
Attachments
Test (6.79 KB, text/html)
2019-06-18 17:33 PDT, Myles C. Maxfield
no flags
Myles C. Maxfield
Comment 1 2019-06-18 17:33:05 PDT
Myles C. Maxfield
Comment 2 2019-06-20 12:49:07 PDT
Turns out writable textures aren’t supported in argument buffers. https://developer.apple.com/documentation/metal/buffers/about_argument_buffers?language=objc We probably need a hybrid approach where some resources are put in argument buffers and some are attached directly.
Myles C. Maxfield
Comment 3 2019-06-24 15:14:32 PDT
Also, MSL doesn't support putting RWTextures in tier 1 hardware, meaning we'll have to demote them to regular arguments.
Myles C. Maxfield
Comment 4 2020-05-05 00:42:38 PDT
WHLSL is no longer relevant.
Note You need to log in before you can comment on or make changes to this bug.