src/core: move mach-core@9a4d09707d9f1cb6ea5602bdf58caeefc46146be package to here
Helps hexops/mach#1165 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
fa3f6161ad
commit
38f296ecce
157 changed files with 28383 additions and 0 deletions
14
src/core/examples/pixel-post-process/pixel_vert.wgsl
Normal file
14
src/core/examples/pixel-post-process/pixel_vert.wgsl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
struct VertexOut {
|
||||
@builtin(position) position_clip: vec4<f32>,
|
||||
@location(0) uv: vec2<f32>
|
||||
}
|
||||
|
||||
@vertex fn main(
|
||||
@location(0) position: vec3<f32>,
|
||||
@location(1) uv: vec2<f32>
|
||||
) -> VertexOut {
|
||||
var output : VertexOut;
|
||||
output.position_clip = vec4<f32>(position.xy, 0.0, 1.0);
|
||||
output.uv = uv;
|
||||
return output;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue