1
0
Fork 0
forked from wry/wry

vulkan: implement Context::reset_status

This commit is contained in:
Julian Orth 2025-03-08 19:51:54 +01:00
parent 9e20e32338
commit 5be253dec2
6 changed files with 28 additions and 4 deletions

View file

@ -243,7 +243,7 @@ struct Context(Rc<VulkanRenderer>);
impl GfxContext for Context {
fn reset_status(&self) -> Option<ResetStatus> {
None
self.0.device.lost.get().then_some(ResetStatus::Unknown)
}
fn render_node(&self) -> Option<Rc<CString>> {