mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
Expose event internal and Event in root level
This commit is contained in:
parent
7d8a7d3e15
commit
09d68b3cb9
@ -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;
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user