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

Black screen when using the Vulkan backend #31

Open
omer681 opened this issue Oct 14, 2022 · 0 comments
Open

Black screen when using the Vulkan backend #31

omer681 opened this issue Oct 14, 2022 · 0 comments

Comments

@omer681
Copy link

omer681 commented Oct 14, 2022

The example works with WGPU_BACKEND=dx12, but shows a black screen when it uses Vulkan (which is the default for my system) on Windows.

Log:

ImageInfo {
    pixel_format: Rgb8,
    size: UVec2(
        553,
        289,
    ),
    stride: UVec2(
        3,
        1659,
    ),
}
[2022-10-14T16:58:13Z INFO  wgpu_core::instance] Adapter Vulkan AdapterInfo { name: "NVIDIA GeForce RTX 3070", vendor: 4318, device: 9348, device_type: DiscreteGpu, backend: Vulkan }
[2022-10-14T16:58:13Z INFO  wgpu_hal::vulkan::adapter] Private capabilities: PrivateCapabilities { flip_y_requires_shift: true, imageless_framebuffers: true, image_view_usage: true, timeline_semaphores: true, texture_d24: true, texture_d24_s8: true, can_present: true, non_coherent_map_mask: 63, robust_buffer_access: 
true, robust_image_access: true }
[2022-10-14T16:58:13Z INFO  naga::front::spv] Generated by 524298 version 10000
[2022-10-14T16:58:13Z WARN  naga::front::spv] Unknown decoration Block
[2022-10-14T16:58:13Z WARN  naga::front::spv] Unknown decoration Block
[2022-10-14T16:58:13Z INFO  naga::front::spv] Patching...
[2022-10-14T16:58:13Z INFO  naga::front::spv] Generated by 524298 version 10000
[2022-10-14T16:58:13Z WARN  naga::front::spv] Unknown decoration Block
[2022-10-14T16:58:13Z INFO  naga::front::spv] Patching...
[2022-10-14T16:58:13Z INFO  wgpu_core::device] Created render pipeline Valid((0, 1, Vulkan)) with RenderPipelineDescriptor { label: Some("show-image-pipeline"), layout: Some((0, 1, Vulkan)), vertex: VertexState { stage: ProgrammableStageDescriptor { module: (0, 1, Vulkan), entry_point: "main" }, buffers: [] }, primitive: PrimitiveState { topology: TriangleList, strip_index_format: None, front_face: Cw, cull_mode: Some(Back), unclipped_depth: false, polygon_mode: Fill, conservative: false }, depth_stencil: None, multisample: MultisampleState { count: 1, mask: 18446744073709551615, alpha_to_coverage_enabled: false }, fragment: Some(FragmentState { stage: ProgrammableStageDescriptor { module: (1, 1, Vulkan), entry_point: "main" }, targets: [Some(ColorTargetState { format: Bgra8Unorm, blend: Some(BlendState { color: BlendComponent { src_factor: SrcAlpha, dst_factor: OneMinusSrcAlpha, operation: Add }, alpha: BlendComponent { src_factor: One, dst_factor: OneMinusSrcAlpha, operation: Add } }), write_mask: RED | GREEN | BLUE | ALPHA | COLOR | ALL })] }), multiview: None }
[2022-10-14T16:58:13Z INFO  wgpu_core::device] configuring surface with SurfaceConfiguration { usage: RENDER_ATTACHMENT, format: Bgra8Unorm, width: 800, height: 600, present_mode: AutoVsync }
[2022-10-14T16:58:13Z INFO  wgpu_core::device] Automatically choosing presentation mode by rule AutoVsync. Chose Fifo
[2022-10-14T16:58:13Z INFO  wgpu_core::device] Created buffer Valid((0, 1, Vulkan)) with BufferDescriptor { label: None, size: 64, usage: COPY_DST | UNIFORM, mapped_at_creation: true }
[2022-10-14T16:58:13Z INFO  wgpu_core::device] configuring surface with SurfaceConfiguration { usage: RENDER_ATTACHMENT, format: Bgra8Unorm, width: 1858, height: 1020, present_mode: AutoVsync }
[2022-10-14T16:58:13Z WARN  wgpu_core::device] Requested size 1858x1020 is outside of the supported range: Extent3d { width: 800, height: 600, depth_or_array_layers: 1 }..=Extent3d { width: 800, height: 600, depth_or_array_layers: 1 }
[2022-10-14T16:58:13Z INFO  wgpu_core::device] Automatically choosing presentation mode by rule AutoVsync. Chose Fifo
[2022-10-14T16:58:13Z INFO  wgpu_core::device] configuring surface with SurfaceConfiguration { usage: RENDER_ATTACHMENT, format: Bgra8Unorm, width: 800, height: 600, present_mode: AutoVsync }
[2022-10-14T16:58:13Z INFO  wgpu_core::device] Automatically choosing presentation mode by rule AutoVsync. Chose Fifo
[2022-10-14T16:58:13Z INFO  wgpu_core::device] configuring surface with SurfaceConfiguration { usage: RENDER_ATTACHMENT, format: Bgra8Unorm, width: 800, height: 600, present_mode: AutoVsync }
[2022-10-14T16:58:13Z INFO  wgpu_core::device] Automatically choosing presentation mode by rule AutoVsync. Chose Fifo
[2022-10-14T16:58:13Z INFO  wgpu_core::device] Created buffer Valid((1, 1, Vulkan)) with BufferDescriptor { label: Some("Untitled_uniforms_buffer"), size: 20, 
usage: UNIFORM, mapped_at_creation: true }
[2022-10-14T16:58:13Z INFO  wgpu_core::device] Created buffer Valid((2, 1, Vulkan)) with BufferDescriptor { label: Some("Untitled_image_buffer"), size: 479452, usage: STORAGE, mapped_at_creation: true }
[2022-10-14T16:58:13Z INFO  wgpu_core::device] Created buffer Valid((3, 1, Vulkan)) with BufferDescriptor { label: None, size: 64, usage: COPY_SRC, mapped_at_creation: true }
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

No branches or pull requests

1 participant