Hacker News new | ask | show | jobs
by nchi3 1608 days ago
>Castrated by the security constraints of being a MVP 1.0 API to fit into the security sandbox of a Web browser.

What security contraints are you thinking of which are making it castrated? In what meaninful ways is it castrated?

> In case you missed the train, Qt now makes direct use of Metal, Vulkan, and DirectX 12.

So with Qt, can I write a complete renderer with advanced techniques, and have it run on all 3 platforms without changing a single file? If not, how is it relevant to even mention?

1 comments

Qt3D is the ultimate goal for that, yes.

Here is a little secret, thanks to extension spaghetti and driver bugs, there is seldom "without changing a single file" unless it is some toy app, instead of being used across all possible consumer hardware.

Plus you are focusing too much on Qt while being defensive for WebGPU on native deployments, there are plenty of other middleware I can use as example.

Qt3D examples use GLSL shaders. This example has 3 shader variants for different platforms https://code.qt.io/cgit/qt/qt3d.git/tree/examples/qt3d/advan...

What are you talking about? Are you saying that https://doc.qt.io/qt-6/qsgmaterialshader.html is less "castrated" than WGSL ? Doesn't look like it. I don't even see the spec, it only says "Vulkan-style GLSL"

>Here is a little secret

Google and Apple definitely have more resources to spend standardizing WGSL (WebGPU has a Conformance Test Suite) than whoever owns QT this time of the year.

Enjoy trying to make WebGPU having any commercial meaning outside the browser, done here.
> while being defensive for WebGPU on native deployments

Because I still haven't heard a single argument against it from you that isn't extremely vague and handwavey.

For example, you skipping over my questions regarding more details on what you think makes WebGPU bad/castrated, or what is making Qt the better choice over WevGPU? (ignoring the fact that Qt doesn't seem to have a common shader language)

I'm open to hear the reasons, but it seems like your goal is to be contrarian.