mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
Expose event internal and Event in root level
This commit is contained in:
1 parent
7d8a7d3e15
commit
09d68b3cb9
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user