src/sysgpu: move mach-sysgpu@d6ed118f54c4784f7ce01b70fc1b94f887fae1a8 package to here
Helps hexops/mach#1165 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
e38a441b69
commit
e7b2ebef70
97 changed files with 51261 additions and 0 deletions
11
src/sysgpu/shader/test/vertexTextureQuad.wgsl
Normal file
11
src/sysgpu/shader/test/vertexTextureQuad.wgsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@vertex
|
||||
fn main(
|
||||
@builtin(vertex_index) VertexIndex : u32
|
||||
) -> @builtin(position) vec4<f32> {
|
||||
const pos = array(
|
||||
vec2(-1.0, -1.0), vec2(1.0, -1.0), vec2(-1.0, 1.0),
|
||||
vec2(-1.0, 1.0), vec2(1.0, -1.0), vec2(1.0, 1.0),
|
||||
);
|
||||
|
||||
return vec4<f32>(pos[VertexIndex], 0.0, 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue