Giter Club home page Giter Club logo

Comments (6)

sotrh avatar sotrh commented on July 19, 2024

Can you share your code so I can see any minor differences?

from learn-wgpu.

St0wy avatar St0wy commented on July 19, 2024

Here is my project when following the tutorial: https://github.com/St0wy/learn-wgpu
If you where asking about this repo, it was a fresh clone, so with nothing changed.

from learn-wgpu.

sotrh avatar sotrh commented on July 19, 2024

So looking closer at the message it says it was trying to load glDebugMessageCallback but couldn't. This seems like a driver issue to me. Check that your graphics drivers are up to date.

from learn-wgpu.

St0wy avatar St0wy commented on July 19, 2024

So I updated my graphics drivers and pulled the latest version and when running cargo run --bin tutorial2-surface I now have a Vulkan error instead of an OpenGL one, but the window still shows up.

This error prints in loop in the terminal :

[2023-08-02T13:22:02Z ERROR wgpu_hal::vulkan::instance] VALIDATION [VUID-VkRenderPassBeginInfo-framebuffer-04627 (0x45125641)]
        Validation Error: [ VUID-VkRenderPassBeginInfo-framebuffer-04627 ] Object 0: handle = 0xab64de0000000020, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0x45125641 | vkCmdBeginRenderPass: Image view #0 created from an image with usage set as (VK_IMAGE_USAGE_TRANSFER_SRC_BIT|VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) but using VkImageViewUsageCreateInfo the inherited usage is the subset (VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) and the image info #0 used to create the framebuffer had usage set as (VK_IMAGE_USAGE_TRANSFER_SRC_BIT|VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT). The Vulkan spec states: If framebuffer was created with a VkFramebufferCreateInfo::flags value that included VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT, each element of the pAttachments member of a VkRenderPassAttachmentBeginInfo structure included in the pNext chain must be a VkImageView with an inherited usage equal to the usage member of the corresponding element of VkFramebufferAttachmentsCreateInfo::pAttachmentImageInfos used to create framebuffer (https://vulkan.lunarg.com/doc/view/1.3.243.0/windows/1.3-extensions/vkspec.html#VUID-VkRenderPassBeginInfo-framebuffer-04627)
[2023-08-02T13:22:02Z ERROR wgpu_hal::vulkan::instance]         objects: (type: RENDER_PASS, hndl: 0xab64de0000000020, name: ?)

from learn-wgpu.

sotrh avatar sotrh commented on July 19, 2024

It's complaining that the surface texture is just bound as a color attachment and not setup for transfer. We don't have access for VK_IMAGE_USAGE_TRANSEr_SRC_BIT so it's either a driver problem, or it's a bug with WGPU.

from learn-wgpu.

St0wy avatar St0wy commented on July 19, 2024

The computer where I did these tests died recently in a loop of BSOD, all with a video related error code. Maybe at that time the GPU was already malfunctionning a bit and caused these issues. I wanted to try the latest version on my current machine to see if I still have the bug, but now I can't compile it because of value-bag.

I guess this issue could be closed since it was probably just a problem with my old computer.

from learn-wgpu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.