shaderexp: add initial shader explorer tool (#245)

* shaderexp: first commit
* shaderexp: further improve error handling
* shaderexp: attribute ray_marching example

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
PiergiorgioZagaria 2022-04-21 13:44:02 +02:00 committed by GitHub
parent 8d574e772c
commit 8df8b043ad
Failed to generate hash of commit
9 changed files with 646 additions and 0 deletions

View file

@ -0,0 +1,11 @@
struct UniformBufferObject {
time: f32,
resolution: vec2<f32>,
}
@group(0) @binding(0) var<uniform> ubo : UniformBufferObject;
@stage(fragment) fn main(
@location(0) uv : vec2<f32>
) -> @location(0) vec4<f32> {
return vec4<f32>( 0.0, 0.0, 0.0, 1.0);
}