33 lines
978 B
WebGPU Shading Language
33 lines
978 B
WebGPU Shading Language
|
[[group(0), binding(0)]] var x_10 : sampler;
|
||
|
|
||
|
[[group(2), binding(1)]] var x_20 : texture_2d<f32>;
|
||
|
|
||
|
[[group(0), binding(1)]] var x_30 : sampler;
|
||
|
|
||
|
fn main_1() {
|
||
|
let f1 : f32 = 1.0;
|
||
|
let vf12 : vec2<f32> = vec2<f32>(1.0, 2.0);
|
||
|
let vf21 : vec2<f32> = vec2<f32>(2.0, 1.0);
|
||
|
let vf123 : vec3<f32> = vec3<f32>(1.0, 2.0, 3.0);
|
||
|
let vf1234 : vec4<f32> = vec4<f32>(1.0, 2.0, 3.0, 4.0);
|
||
|
let i1 : i32 = 1;
|
||
|
let vi12 : vec2<i32> = vec2<i32>(1, 2);
|
||
|
let vi123 : vec3<i32> = vec3<i32>(1, 2, 3);
|
||
|
let vi1234 : vec4<i32> = vec4<i32>(1, 2, 3, 4);
|
||
|
let u1 : u32 = 1u;
|
||
|
let vu12 : vec2<u32> = vec2<u32>(1u, 2u);
|
||
|
let vu123 : vec3<u32> = vec3<u32>(1u, 2u, 3u);
|
||
|
let vu1234 : vec4<u32> = vec4<u32>(1u, 2u, 3u, 4u);
|
||
|
let coords1 : f32 = 1.0;
|
||
|
let coords12 : vec2<f32> = vf12;
|
||
|
let coords123 : vec3<f32> = vf123;
|
||
|
let coords1234 : vec4<f32> = vf1234;
|
||
|
let x_79 : vec4<f32> = textureSampleBias(x_20, x_10, coords12, 7.0);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
[[stage(fragment)]]
|
||
|
fn main() {
|
||
|
main_1();
|
||
|
}
|