Bug 198985 - [WHLSL] Hook up RWTextures
Summary: [WHLSL] Hook up RWTextures
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 195813
  Show dependency treegraph
 
Reported: 2019-06-18 17:05 PDT by Myles C. Maxfield
Modified: 2020-05-05 00:42 PDT (History)
0 users

See Also:


Attachments
Test (6.79 KB, text/html)
2019-06-18 17:33 PDT, Myles C. Maxfield
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 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.
Comment 1 Myles C. Maxfield 2019-06-18 17:33:05 PDT
Created attachment 372411 [details]
Test
Comment 2 Myles C. Maxfield 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.
Comment 3 Myles C. Maxfield 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.
Comment 4 Myles C. Maxfield 2020-05-05 00:42:38 PDT
WHLSL is no longer relevant.