3 ms·
It might be really difficult to avoid runtime shader translation without some other solution (e.g. populating pipeline caches ahead of time). For example, to p
by grovesNL 6y ago
It might be really difficult to avoid runtime shader translation without some other solution (e.g. populating pipeline caches ahead of time).
For example, to provide MSL, there needs to be assumptions about exactly which MSL version is supported, all possible values of specialization constants if the MSL version is less than 1.2, all the details of which pipeline layouts will be used at runtime, etc. and all of these also have to match the internal logic used in Dawn or wgpu.
There's some more discussion about this in gfx and wgpu, e.g. https://github.com/gfx-rs/gfx/issues/3117#issuecomment-570458385 https://github.com/gfx-rs/gfx/issues/3117#issuecomment-57045...