Comments (6)
Can you share your code so I can see any minor differences?
from learn-wgpu.
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.
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.
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.
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.
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)
- Safety note for create_surface appears off HOT 2
- Viewing Old Versions HOT 2
- OPENGL_TO_WGPU_MATRIX constant for NDC conversion is incorrect HOT 2
- dark theme / use mdBook HOT 1
- a correction is needed
- What is the purpose of "window_id == state.window().id()"?
- Code for `learn-wgpu/code/beginner/tutorial3-pipeline/src/challenge.wgsl` doesn't work HOT 3
- `bytemuck` isn't listed in dependencies for "Learn Wgpu" but is used HOT 1
- The "Color Correction" paragraph is incorrect (or misleading) HOT 2
- compiler error HOT 4
- More about compute shader HOT 2
- Update to 0.17 HOT 1
- Why is the triangle color a rainbow ? HOT 5
- There are two tutorial thirteens HOT 2
- Alpha mode HOT 2
- wgpu and winit update tracker HOT 8
- [tutorial9-models] Texture coords are not flipped vertically HOT 4
- HDR demo not working when I have WebGPU flag enabled on chrome HOT 3
- Error: Cannot find module `demo.js` HOT 1
- Wrong view projection matrices HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-wgpu.