RESOLVED MOVED 189936
[WHLSL] Metal codegen needs to correctly handle all entry point arguments
https://bugs.webkit.org/show_bug.cgi?id=189936
Summary [WHLSL] Metal codegen needs to correctly handle all entry point arguments
Thomas Denney
Reported 2018-09-24 16:47:46 PDT
WHLSL and MSL shader parameter/return types may differ in their layout — the stage_in parameters need to be flattened into a single struct for example — so shader entry points should unpack their parameters into the expected layout and when they exit they should repack into this format.
Attachments
Myles C. Maxfield
Comment 1 2018-09-24 19:00:41 PDT
It might be easier to implement the packing/unpacking if we make a new function that represents the entry point that just does the packing/unpacking, the global struct, and the trap statement bool
Myles C. Maxfield
Comment 2 2018-10-13 14:23:10 PDT
Myles C. Maxfield
Comment 3 2018-10-13 14:52:17 PDT
Note You need to log in before you can comment on or make changes to this bug.