triangle... yes...
This commit is contained in:
parent
676231e0d8
commit
6732f95f74
2 changed files with 16 additions and 1 deletions
|
|
@ -13,5 +13,5 @@ fn vs_main(@builtin(vertex_index) in_vertex_index: u32) -> @builtin(position) ve
|
||||||
|
|
||||||
@fragment
|
@fragment
|
||||||
fn fs_main() -> @location(0) vec4f {
|
fn fs_main() -> @location(0) vec4f {
|
||||||
return vec4f(0.0, 0.4, 1.0, 1.0);
|
return vec4f(0.0, 0.0, 0.0, 1.0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -167,6 +167,21 @@ pub fn draw(ctx: App.scheduler.Context) !void {
|
||||||
wgpu.wgpuRenderPassEncoderRelease(pass);
|
wgpu.wgpuRenderPassEncoderRelease(pass);
|
||||||
}
|
}
|
||||||
_ = camera_queue;
|
_ = camera_queue;
|
||||||
|
|
||||||
|
// TODO: Get pipeline from model instead
|
||||||
|
wgpu.wgpuRenderPassEncoderSetPipeline(
|
||||||
|
pass,
|
||||||
|
res.cache.pipelines.getPtr(.{ .shader = .pbr }).?.*,
|
||||||
|
);
|
||||||
|
|
||||||
|
// TODO: Yes
|
||||||
|
wgpu.wgpuRenderPassEncoderDraw(
|
||||||
|
pass,
|
||||||
|
3,
|
||||||
|
1,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue