-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: changed swapchain and dependencies to get it working on linux #15
base: main
Are you sure you want to change the base?
Conversation
src/main.rs
Outdated
@@ -88,7 +89,7 @@ fn main() -> anyhow::Result<()> { | |||
view.recommended_image_rect_width, | |||
view.recommended_image_rect_height, | |||
)); | |||
let surface = unsafe { wgpu_state.instance.create_surface(&window) }; | |||
let surface = unsafe { wgpu_state.instance.create_surface(&window) }.unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
src/main.rs
Outdated
@@ -195,6 +198,7 @@ fn main() -> anyhow::Result<()> { | |||
config.width = size.width; | |||
config.height = size.height; | |||
surface.configure(&wgpu_state.device, &config); | |||
println!("hi"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
array_layer_count: NonZeroU32::new(VIEW_COUNT), | ||
..Default::default() | ||
}); | ||
let view = texture.create_view(&wgpu::TextureViewDescriptor::default()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is specifying the view dimension no longer necessary?
src/xr.rs
Outdated
// .physical_device_capabilities() | ||
// .properties() | ||
// .limits, | ||
// ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete if not used
Looks good but I won't be able to test it for a while, so I trust it'll be correct after the quirks are fixed |
#14