Remove duplicate wgsl from test-data

This commit is contained in:
Joshua Groves
2020-12-10 19:44:40 -03:30
committed by Dzmitry Malyshau
parent 6a6e3c28f9
commit d18b73c3a7
5 changed files with 0 additions and 58 deletions

View File

@@ -1,9 +0,0 @@
fn test_function(test: f32) -> f32 {
return test;
}
[[stage(vertex)]]
fn main() -> void {
var foo: f32 = distance(0.0, 1.0);
var test: f32 = test_function(1.0);
}

View File

@@ -1,7 +0,0 @@
(
spv_capabilities: [ Shader ],
mtl_bindings: {
(stage: Fragment, group: 0, binding: 0): (texture: Some(0)),
(stage: Fragment, group: 0, binding: 1): (sampler: Some(0)),
}
)

View File

@@ -1,25 +0,0 @@
# vertex
const c_scale: f32 = 1.2;
[[location(0)]] var<in> a_pos : vec2<f32>;
[[location(1)]] var<in> a_uv : vec2<f32>;
[[location(0)]] var<out> v_uv : vec2<f32>;
[[builtin(position)]] var<out> o_position : vec4<f32>;
[[stage(vertex)]]
fn main() -> void {
v_uv = a_uv;
o_position = vec4<f32>(c_scale * a_pos, 0.0, 1.0);
return;
}
# fragment
[[location(0)]] var<in> v_uv : vec2<f32>;
[[group(0), binding(0)]] var u_texture : texture_sampled_2d<f32>;
[[group(0), binding(1)]] var u_sampler : sampler;
[[location(0)]] var<out> o_color : vec4<f32>;
[[stage(fragment)]]
fn main() -> void {
o_color = textureSample(u_texture, u_sampler, v_uv);
return;
}

View File

@@ -1,4 +0,0 @@
(
spv_capabilities: [ Shader ],
mtl_bindings: { }
)

View File

@@ -1,13 +0,0 @@
# vertex
[[builtin(position)]] var<out> o_position : vec4<f32>;
[[stage(vertex)]]
fn main() -> void {
o_position = vec4<f32>(1.0, 1.0, 1.0, 1.0);
if (1 == 1) {
var a: f32 = 1.0;
}
return;
}