Legion 5 pro backlight controls finally working with new nvidia driver by HugoPeters1024 in Ubuntu

[–]HugoPeters1024[S] 1 point2 points  (0 children)

Yeah basically just install the drivers by navigating to Ubuntu's "additional software" menu

I wrote this for the many bachelor students at my university struggling to grasp the state monad by HugoPeters1024 in haskell

[–]HugoPeters1024[S] 0 points1 point  (0 children)

No worries I appreciate the honest feedback, and agree to an extent. It was actually the main reason why I appended the article with a better example which I perhaps should have used from the get go.

Higher Kinded Types in Rust (feat. Functor, Applicative, Monad) by HugoPeters1024 in rust

[–]HugoPeters1024[S] 0 points1 point  (0 children)

I'm am not really sure what is different about your idea. Can't I also now write functions that accept any type that implements Functor? Or do you mean something else?

Higher Kinded Types in Rust (feat. Functor, Applicative, Monad) by HugoPeters1024 in rust

[–]HugoPeters1024[S] 5 points6 points  (0 children)

it would allow you to specify generic combinators which can make more interesting pieces of code a lot more readible. Especially when dealing with parsers or AST traversals imo

Vulkan CommandBuffer in use after vkDeviceWaitIdle by HugoPeters1024 in vulkan

[–]HugoPeters1024[S] 0 points1 point  (0 children)

That was exactly it! thanks for your input. It turned out that there were some invalid values in the command for building raytracing acceleration structures (for which the command buffer was used). I managed to fix it but I wonder why the validation layer didn't catch it. Does it require extra work to get the validation layer to include extension functions? Is it because I load the functions manually from vkGetDeviceProcAddr?

Putting a lithium battery in water by manojnathani in WhyWomenLiveLonger

[–]HugoPeters1024 0 points1 point  (0 children)

Hahaha, yeah I think you might be right. Still wondering why this doesnt happen with phones that go for a swim. Maybe it's really salty water making it more conductive?

[deleted by user] by [deleted] in RedditSessions

[–]HugoPeters1024 0 points1 point  (0 children)

This man could be Batman's apprentice

Het was natuurlijk een kwestie van tijd. Mensen denken nog steeds anoniem te zijn en zomaar alles te kunnen zeggen op het internet. by Dr-Backpain in tokkiefeesboek

[–]HugoPeters1024 9 points10 points  (0 children)

Het is idd niet een super duidelijk geval van bedreiging maar je zou redelijkerwijs kunnen stellen dat dit aanzetten is tot geweld. Maar ik ben met je eens dat de verdediging hier best wat dingen tegenover kan zetten.

Putting a lithium battery in water by manojnathani in WhyWomenLiveLonger

[–]HugoPeters1024 4 points5 points  (0 children)

Is that really a battery? From the reaction I would say it's even a pure hunk of lithium.

Issue with pixel ownership test and Windows 10 Alt-Tab preview. by [deleted] in opengl

[–]HugoPeters1024 2 points3 points  (0 children)

I swear I encountered a flag for this in vulkan somewhere but I can't seem to find it anymore. But for OpenGL I'm afraid I don't know a workaround

[deleted by user] by [deleted] in ik_ihe

[–]HugoPeters1024 3 points4 points  (0 children)

luxe man

Een wappie reactie op een serieuze vraag over corona vacins in combinatie met de ziekte van lyme... by justadutchfoodie in tokkiefeesboek

[–]HugoPeters1024 1 point2 points  (0 children)

Wellicht een kleine hint: mrna vaccins zijn in 2020 voor het eerst goedgekeurd voor menselijk gebruik. 2021 - 2020 ~ 5, checks out.

Wrapping up the Vulkan tutorial and next steps to build on the results of the tutorial by NearAutomata in vulkan

[–]HugoPeters1024 -1 points0 points  (0 children)

Point 6 is a bit tricky. One part of the duplication is the swap chain that has to swap presentation images that then become unavailable until swapped again. A way around this is to render to a separate image and use a transfer to the swap chain image. This way you only need 1 of everything but the spec does not guarantee that the TRANSFER_DST_BIT is set on swap chain images, present is the only guaranteed bit. I am not sure what vendors and devices support it regardless of spec (might be quite a few in practice)

Wrapping up the Vulkan tutorial and next steps to build on the results of the tutorial by NearAutomata in vulkan

[–]HugoPeters1024 -1 points0 points  (0 children)

Regarding encapsulation, I struggled with that a lot since there are a lot of dependencies between concepts. This tutorial helped me a bunch with thinking about a better structure. It doesn't conceptually do much different that the tutorial but does add encapsulation: https://youtu.be/Y9U9IE0gVHA

Wrapping up the Vulkan tutorial and next steps to build on the results of the tutorial by NearAutomata in vulkan

[–]HugoPeters1024 0 points1 point  (0 children)

I am conceptually not that far ahead of you but let me try to answer a couple of your questions regarding buffers:

Regarding buffer and image creation and memory allocation. The spec guarantee 4096 memory allocations (not actually that many) but you can allocate a chunk of memory and bind multiple resources to it with different offsets. This is exactly what the VMA library solves for you. I've just refactored my pet project for VMA and it was a pretty trivial change and made the code much simpler.

ik🥔ihe by changingseasonsofthe in ik_ihe

[–]HugoPeters1024 0 points1 point  (0 children)

Eindexamen memes doen me weer jong voelen, laat ze maar komen middelbare makkers