File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl super::Device {
85
85
}
86
86
. into_device_result ( "Zero buffer creation" ) ?;
87
87
88
- let zero_buffer = zero_buffer. ok_or ( crate :: DeviceError :: ResourceCreationFailed ) ?;
88
+ let zero_buffer = zero_buffer. ok_or ( crate :: DeviceError :: Unexpected ) ?;
89
89
90
90
// Note: without `D3D12_HEAP_FLAG_CREATE_NOT_ZEROED`
91
91
// this resource is zeroed by default.
@@ -114,7 +114,7 @@ impl super::Device {
114
114
)
115
115
}
116
116
. into_device_result ( "Command signature creation" ) ?;
117
- signature. ok_or ( crate :: DeviceError :: ResourceCreationFailed )
117
+ signature. ok_or ( crate :: DeviceError :: Unexpected )
118
118
}
119
119
120
120
let shared = super :: DeviceShared {
@@ -1637,7 +1637,7 @@ impl crate::Device for super::Device {
1637
1637
}
1638
1638
. into_device_result ( "Query heap creation" ) ?;
1639
1639
1640
- let raw = raw. ok_or ( crate :: DeviceError :: ResourceCreationFailed ) ?;
1640
+ let raw = raw. ok_or ( crate :: DeviceError :: Unexpected ) ?;
1641
1641
1642
1642
if let Some ( label) = desc. label {
1643
1643
unsafe { raw. SetName ( & windows:: core:: HSTRING :: from ( label) ) }
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ pub(crate) fn create_buffer_resource(
94
94
}
95
95
. into_device_result ( "Placed buffer creation" ) ?;
96
96
97
- let resource = resource. ok_or ( crate :: DeviceError :: ResourceCreationFailed ) ?;
97
+ let resource = resource. ok_or ( crate :: DeviceError :: Unexpected ) ?;
98
98
99
99
device
100
100
. counters
@@ -141,7 +141,7 @@ pub(crate) fn create_texture_resource(
141
141
}
142
142
. into_device_result ( "Placed texture creation" ) ?;
143
143
144
- let resource = resource. ok_or ( crate :: DeviceError :: ResourceCreationFailed ) ?;
144
+ let resource = resource. ok_or ( crate :: DeviceError :: Unexpected ) ?;
145
145
146
146
device
147
147
. counters
@@ -265,7 +265,7 @@ pub(crate) fn create_committed_buffer_resource(
265
265
}
266
266
. into_device_result ( "Committed buffer creation" ) ?;
267
267
268
- resource. ok_or ( crate :: DeviceError :: ResourceCreationFailed )
268
+ resource. ok_or ( crate :: DeviceError :: Unexpected )
269
269
}
270
270
271
271
pub ( crate ) fn create_committed_texture_resource (
@@ -302,5 +302,5 @@ pub(crate) fn create_committed_texture_resource(
302
302
}
303
303
. into_device_result ( "Committed texture creation" ) ?;
304
304
305
- resource. ok_or ( crate :: DeviceError :: ResourceCreationFailed )
305
+ resource. ok_or ( crate :: DeviceError :: Unexpected )
306
306
}
You can’t perform that action at this time.
0 commit comments