Expose event internal and Event in root level

This commit is contained in:
msiglreith 2018-11-08 18:13:37 +01:00
parent 7d8a7d3e15
commit 09d68b3cb9
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ pub use self::pso::{CachedPSO, PipelineState, Shader};
pub use self::query::QueryHeap;
pub use self::queue::CommandQueue;
pub use self::resource::{Heap, Resource};
pub use self::sync::Fence;
pub use self::sync::{Event, Fence};
pub use winapi::shared::winerror::HRESULT;

View File

@ -6,7 +6,7 @@ use HRESULT;
#[derive(Copy, Clone)]
#[repr(transparent)]
pub struct Event(winnt::HANDLE);
pub struct Event(pub winnt::HANDLE);
impl Event {
pub fn create(manual_reset: bool, initial_state: bool) -> Self {
Event(unsafe {