Skip to content

Commit 72eb581

Browse files
committed
Fix cast
1 parent 730e9cf commit 72eb581

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

unity-native-plugin/src/d3d12.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl UnityGraphicsD3D12 {
2929
unsafe {
3030
self.interface()
3131
.GetNextFrameFenceValue
32-
.expect("GetNextFrameFenceValue")()
32+
.expect("GetNextFrameFenceValue")() as u64
3333
}
3434
}
3535

@@ -79,7 +79,7 @@ impl UnityGraphicsD3D12v2 {
7979
unsafe {
8080
self.interface()
8181
.GetNextFrameFenceValue
82-
.expect("GetNextFrameFenceValue")()
82+
.expect("GetNextFrameFenceValue")() as u64
8383
}
8484
}
8585

@@ -94,7 +94,7 @@ impl UnityGraphicsD3D12v2 {
9494
command_list as *mut ID3D12GraphicsCommandList,
9595
states.len() as ::std::os::raw::c_int,
9696
states.as_ptr() as *mut UnityGraphicsD3D12ResourceState,
97-
)
97+
) as u64
9898
}
9999
}
100100

@@ -120,7 +120,7 @@ impl UnityGraphicsD3D12v3 {
120120
unsafe {
121121
self.interface()
122122
.GetNextFrameFenceValue
123-
.expect("GetNextFrameFenceValue")()
123+
.expect("GetNextFrameFenceValue")() as u64
124124
}
125125
}
126126

@@ -135,7 +135,7 @@ impl UnityGraphicsD3D12v3 {
135135
command_list as *mut ID3D12GraphicsCommandList,
136136
states.len() as ::std::os::raw::c_int,
137137
states.as_ptr() as *mut UnityGraphicsD3D12ResourceState,
138-
)
138+
) as u64
139139
}
140140

141141
pub fn set_physical_video_memory_control_values(
@@ -172,7 +172,7 @@ impl UnityGraphicsD3D12v4 {
172172
unsafe {
173173
self.interface()
174174
.GetNextFrameFenceValue
175-
.expect("GetNextFrameFenceValue")()
175+
.expect("GetNextFrameFenceValue")() as u64
176176
}
177177
}
178178

@@ -187,7 +187,7 @@ impl UnityGraphicsD3D12v4 {
187187
command_list as *mut ID3D12GraphicsCommandList,
188188
states.len() as ::std::os::raw::c_int,
189189
states.as_ptr() as *mut UnityGraphicsD3D12ResourceState,
190-
)
190+
) as u64
191191
}
192192

193193
pub fn set_physical_video_memory_control_values(
@@ -228,7 +228,7 @@ impl UnityGraphicsD3D12v5 {
228228
unsafe {
229229
self.interface()
230230
.GetNextFrameFenceValue
231-
.expect("GetNextFrameFenceValue")()
231+
.expect("GetNextFrameFenceValue")() as u64
232232
}
233233
}
234234

@@ -243,7 +243,7 @@ impl UnityGraphicsD3D12v5 {
243243
command_list as *mut ID3D12GraphicsCommandList,
244244
states.len() as ::std::os::raw::c_int,
245245
states.as_ptr() as *mut UnityGraphicsD3D12ResourceState,
246-
)
246+
) as u64
247247
}
248248

249249
pub fn set_physical_video_memory_control_values(

0 commit comments

Comments
 (0)