W3C home > Mailing lists > Public > public-gpu@w3.org > November 2018

Re: Binary vs Text

From: Maciej Stachowiak <mjs@apple.com>
Date: Wed, 07 Nov 2018 13:11:19 -0800
Message-id: <27EEF444-A194-4EEC-8B41-02F47BD6148A@apple.com>
Cc: Filip Pizlo <fpizlo@apple.com>, Kenneth Russell <kbr@google.com>, "Myles C. Maxfield" <mmaxfield@apple.com>, public-gpu <public-gpu@w3.org>
To: Florian Bösch <pyalot@gmail.com>


> On Nov 7, 2018, at 7:53 AM, Florian Bösch <pyalot@gmail.com> wrote:
> 
> On Wed, Nov 7, 2018 at 4:30 PM Filip Pizlo <fpizlo@apple.com <mailto:fpizlo@apple.com>> wrote:
> emit MSL, HLSL, or SPIR-V.
> 
> Well, if you've got to emit HLSL you're screwed. Because it's longstanding Microsoft tradition that compilers are shit and slow. It's always been Microsofts view that you should precompile shaders to DXIL. The whole exercise only has any point if you can cut out slow middleware that can't do what it's supposed to do in a reasonable amount of time despite developers complaining and arguing about it for the better part of 2 decades. At this point it's fairly certain to assume drivers and Direct3D are always going to be shit at compiling anything, apparently hiring capable programmers for compiler design is hard or whatever, so the only way to make any progress is to take that responsibility entirely out of their incapable hands.

Both HLSL and DXIL can be emitted either from SPIR-V or from WHLSL as an input. With probably similar levels of effort. So if it turns out to be desirable to avoid compiling MSL at runtime, this can be handled, and the choice of input language makes no difference.

Regards,
Maciej


Received on Wednesday, 7 November 2018 21:19:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:52:25 UTC