Add docs about how use ash with vulkano
This commit is contained in:
parent
5d4048d9a7
commit
7b1373620c
1 changed files with 15 additions and 0 deletions
15
docs/USE_ASH_METHODS.md
Normal file
15
docs/USE_ASH_METHODS.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# Informations
|
||||||
|
|
||||||
|
```rust
|
||||||
|
let fns = vulkano_context.instance().fns();
|
||||||
|
let mut props = ash::vk::PhysicalDeviceProperties::default();
|
||||||
|
|
||||||
|
unsafe {
|
||||||
|
(fns.v1_0.get_physical_device_properties)(
|
||||||
|
vulkano_context.device().physical_device().handle(),
|
||||||
|
&mut props,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
println!("{:?}", props);
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue