Skip to content

Commit

Permalink
Document extension modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Mar 27, 2024
1 parent a526d8d commit c058497
Show file tree
Hide file tree
Showing 7 changed files with 406 additions and 5 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- extensions/ext/ray_tracing_pipeline: Pass indirect SBT regions as single item reference (#829)
- Replaced `c_char` array setters with `CStr` setters (#831)
- `push_next()` functions now allow unsized `p_next` argument (#855)
- Moved high-level extension wrappers from `ash::extensions` to the existing modules under `ash::vk` (#894)

### Removed

Expand Down
11 changes: 7 additions & 4 deletions ash-examples/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ use std::{
borrow::Cow, cell::RefCell, default::Default, error::Error, ffi, ops::Drop, os::raw::c_char,
};

use ash::vk::{
ext::debug_utils,
khr::{surface, swapchain},
use ash::{
vk,
vk::{
ext::debug_utils,
khr::{surface, swapchain},
},
Device, Entry, Instance,
};
use ash::{vk, Device, Entry, Instance};
use winit::{
event::{ElementState, Event, KeyEvent, WindowEvent},
event_loop::{ControlFlow, EventLoop},
Expand Down
2 changes: 1 addition & 1 deletion ash/src/extensions/khr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub mod buffer_device_address;
pub mod calibrated_timestamps;
pub mod cooperative_matrix;
pub mod copy_commands2;
pub mod create_render_pass2;
pub mod create_renderpass2;
pub mod deferred_host_operations;
pub mod device_group;
pub mod device_group_creation;
Expand Down
1 change: 1 addition & 0 deletions ash/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub mod util;
pub mod vk;

// macros of vk need to be defined beforehand
/// Hand-written ergonomic wrappers for extension functions
mod extensions;

pub trait RawPtr<T> {
Expand Down
Loading

0 comments on commit c058497

Please sign in to comment.