WGPU for beginners 2: making a blank screen (glfw)

#gamedev #gamedevelopment #programming
Discord: / discord
Patreon: patreon.com/user?u=58955910
Code: github.com/amengede/wgpu
Playlist: • WGPU

Пікірлер: 11

  • @Flakelolz
    @FlakelolzАй бұрын

    I was getting an weird error (Invalid Surface) trying to run the project at 21:55 so I copied the code from your GitHub to see it I made a mistake, but it was still crashing and giving me an "Invalid Surface" error, although a bit different because GLFW wasn't throwing a stack trace or something. Anyways, I changed the Backend from wgpu::Backends::all() to wgpu::Backends::DX12 and that Fixed it. I'm on Windows 11 with a RTX 2060 Super. Not sure what's going on exactly, but thank you for the videos, can't wait for the next one!

  • @GetIntoGameDev

    @GetIntoGameDev

    Ай бұрын

    Very strange, glad you got it working!

  • @moacirbrg
    @moacirbrgАй бұрын

    First, thank you so much for your video. It helped me a lot. Second, there is a memory leak on your, but my limited skills working with Rust and WGPU are making my life harder to solve it. I think it is on your update_surface method since it creates a new instance of the surface, but doesn't drop the old one. If you monitor your memory and move your Window for a while on your screen, you will see your memory increasing forever.

  • @GetIntoGameDev

    @GetIntoGameDev

    Ай бұрын

    Great catch, thankyou!

  • @blacklistnr1
    @blacklistnr1Ай бұрын

    I've no idea how I ended up here, but some feedback: I don't find the _type code in silence -> explain the code_ neither too engaging or time efficient My favourite style that I've found is narrating the goal via current thoughts before/while coding with breaks if relevant, e.g. "Ok, we have an initialized surface, this should be passed to the GPU device to draw on. To do that we need to go though an *typing & saying* instance.request_adapter *break* which is similar to the vulkan adapter if you've used that, *continue typing*..." Interesting nonetheless, keep it up!

  • @GetIntoGameDev

    @GetIntoGameDev

    Ай бұрын

    Thanks for the feedback, appreciate it!

  • @SkyFly19853
    @SkyFly19853Ай бұрын

    was it Thailand ?

  • @GetIntoGameDev

    @GetIntoGameDev

    Ай бұрын

    That’s right!

  • @SkyFly19853

    @SkyFly19853

    Ай бұрын

    @@GetIntoGameDev Indeed.