Get the latest tech news

Show HN: Metashade – a Pythonic GPU shading/compute EDSL


An experimental GPU shading DSL embedded in Python. - ppenenko/metashade

Cross-compilation (e.g. with SPIRV-Cross) is definitely an alternative but the code generation approach should offer higher flexibility around: more divergent languages, e.g. HLSL vs OSL; language dialects; integration required by the specific host application (a shader fragment with an interface defined in metadata, an effect file etc. ), which is hard to accomplish with cross-compilation because it typically operates on final, full shaders with a defined entry point. It uses more straight-forward mechanisms in hopes of making the DSL appear less magical to the user and enabling integration with other Python code.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of compute

compute

Photo of edsl

edsl

Photo of shading

shading

Related news:

News photo

AI2 Incubator scores $200M in compute to feed needy AI startups