Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MalekiRe
Copy link

#14

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();
Copy link
Owner

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");
Copy link
Owner

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());
Copy link
Owner

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,
// );
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete if not used

@philpax
Copy link
Owner

philpax commented May 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants