mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-11 19:10:34 +00:00
feat: added link to CompareFunction
It adds more insights to what the field are for
This commit is contained in:
parent
8c4d2b5871
commit
c125d28743
@ -93,7 +93,7 @@ let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescrip
|
||||
});
|
||||
```
|
||||
|
||||
1. The `depth_compare` function tells us when to discard a new pixel. Using `LESS` means pixels will be drawn front to back. Here are all the values you can use.
|
||||
1. The `depth_compare` function tells us when to discard a new pixel. Using `LESS` means pixels will be drawn front to back. The other possible values for a [CompareFunction](https://docs.rs/wgpu/latest/wgpu/enum.CompareFunction.html) that you can use:
|
||||
|
||||
```rust
|
||||
#[repr(C)]
|
||||
|
Loading…
Reference in New Issue
Block a user