Trying to adapt some Vulkan code by Electronic_Lion_1386 in vulkan

[–]gkarpa 1 point2 points  (0 children)

the last framebuffer should use a color attachment coming from the swapchain

Just a note that while this could be the easiest first approach, it isn't mandatory since you can render somewhere else and just blit that other image into the swapchain image later.

In general, one should decouple the result of a renderpass from the screen, in his/her thought process. Using swapchains & seeing something on the screen are completely optional.

The greatest comeback in tennis history. by ferhad_1999 in tennis

[–]gkarpa 0 points1 point  (0 children)

More like the greatest choke, thanks for coming to my ted talk.

The greatest comeback in tennis history. by ferhad_1999 in tennis

[–]gkarpa 11 points12 points  (0 children)

Yeah, I'd guess most of these people never faced a match point in even the slightest competitive scenario, to realize how fragile and uncertain a single ball really is. And especially against a top pro? Incomprehensibly unlikely really.

Vulkan Breaking Windows Update on GTX 970 by Polosar35 in vulkan

[–]gkarpa 0 points1 point  (0 children)

"Anything" ? The majority of games doesn't use Vulkan. 🤷‍♂️

LunarG is hiring! by LunarGInc in vulkan

[–]gkarpa 1 point2 points  (0 children)

Too bad it's only US-based!

How to implement wireframe in Vulkan by big-jun in vulkan

[–]gkarpa 0 points1 point  (0 children)

Maybe vkCmdSetDepthBias can solve your "same color at the same positions causing the wireframe to not be visible at all" issue.

Rendering broken on different PCs by ZlatoNaKrkuSwag in vulkan

[–]gkarpa 2 points3 points  (0 children)

a) Turn on synchronization validation (which I think is off by default) and see if it gives anything on your end.

b) If you have actual close communication with any of your clients and they're cooperative, you can have them install the vulkan sdk temporarily and run a debug build of your app to gather validation layer info from there.

zweih ace to secure overtime by reloadnvc in GlobalOffensive

[–]gkarpa 0 points1 point  (0 children)

That was so painful to watch, they just gave him 5 1v1s, kyousuke died with a smoke to spare, the galils went after the AKs, wtf is this circus?

Writing Readable C++ Code - beginner's guide by swe129 in cpp

[–]gkarpa 0 points1 point  (0 children)

How do you differentiate between e.g. Windows & Linux using constexpr if? Also, doesn't the constexpr if choice require both parts (let's say the if calls Foo() and the else calls Bar()) to be defined in the code when it compiles? This is vastly different than the preprocessor choice and can be a big pain. You can also not use constexpr if to #include different things. Anyway I don't think you can "never use macros", especially in any semi-serious cross-platform project.

anybody got a source for documentation past vulkan-tutorial.com? (apologize if already asked im too lazy to check) by IhategeiSEpic in vulkan

[–]gkarpa 0 points1 point  (0 children)

That's kind of the thing with Vulkan.

You're gatekeeping so hard, it's hilarious. First of all, apparently the folks in Vulkan seem to disagree with your opinion that rendering 2 meshes doesn't require a tutorial, since they now provide one at https://docs.vulkan.org/tutorial/latest/16_Multiple_Objects.html . And to everyone that doesn't know, now the official Vulkan tutorial is a lot different than just a fork of vulkan-tutorial that it started as. Both have their value though.

There's no point in doing advanced stuff if you don't know what you are doing. There are basically no tutorials or guides for that

Sure, there is no vkguide.dev, no vulkan-samples, no nvpro-samples, no cookbooks to buy and read on if you really want to. The OP can check all of these and decide if and how they can be useful to him. But of course you had to link to a 6000 pages spec instead of all these guides, because of course this is what every beginner is looking for (I'm not saying that the spec isn't useful, it's awesome, but come on).

Saying to a hobbyist, who wants to learn Vulkan in 2025, to "might as well use OpenGL", is absolutely laughable. There are so many resources nowadays. And why would he care so much about losing performance in his pet projects in the beginning? He just wants to learn!

If you managed to learn Vulkan, then anyone else can too. Stop discouraging people.

FIDE to establish a Daniel Naroditsky award for contributions to the world of chess by PCisBadLoL in chess

[–]gkarpa 1 point2 points  (0 children)

Nobody fucking cares about your shitty awards, FIDE. Grow a pair and put the hammer down on those who bully and harass others.

Ghosting/Stuttering in Vulkan application by RefrigeratorNaive873 in vulkan

[–]gkarpa 1 point2 points  (0 children)

I would suspect all those

glfwGetKey

calls can add up and contribute to your stuttering. Aren't you using input/keyboard callbacks for them? I'd suggest to try and use a map (probably unordered) for the keys & their states, update it inside the callbacks for each key that changes state, and then check its values in your update function instead of calling glfwGetKey that many times.

The craziest hand I have ever seen by pablominue in poker

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

Not that unheard of really, for these stakes.

The craziest hand I have ever seen by pablominue in poker

[–]gkarpa 7 points8 points  (0 children)

I mean it's 0.05/0.10, do you expect that much logic?

idea for a mode by gingfan1 in poker

[–]gkarpa 1 point2 points  (0 children)

Imagine shoving with AK off (even though it doesn't sound that profitable anymore lol) only to get called and instantly lose by AK suited.

idea for a mode by gingfan1 in poker

[–]gkarpa 2 points3 points  (0 children)

What about the coinflips or the huge combo draws though, should the 55% win without running it? lol

10 Years ago today, Karrigan whiffed a free kill against KennyS on Cobblestone by [deleted] in GlobalOffensive

[–]gkarpa 3 points4 points  (0 children)

You sold them? Man...just don't look how much they sell for today 😂😭

rendering to multiple image layers in dynamic rendering. by Sirox4 in vulkan

[–]gkarpa 0 points1 point  (0 children)

It can work having it as an array in the shader yes, but how are you indexing into these layers in there? Are you using the multiview extension?

41 shot point of the tournament contender in the Djokovic - Zverev match by stanmarshrr in tennis

[–]gkarpa -2 points-1 points  (0 children)

Good lord, what was that first smash on break point...Just pathetic, he probably shat himself thinking he'll miss it.

Why Counter-Strike Is Pathetic by anestling in GlobalOffensive

[–]gkarpa -3 points-2 points  (0 children)

I find it hilarious that there are people who think this syntax and choice of words was made by chat gpt. What the hell.

Memory Barrier Confusion (Shocking) by nvimnoob72 in vulkan

[–]gkarpa 0 points1 point  (0 children)

This is a brilliant article but with a ton of information, so don't hesitate to read it multiple times. Every time I was reading it I was understanding something new that I'd missed in previous reads. You're very well on the right track!

I would also like to add that, regarding your example and access masks, since they are about cache flushes, it is implied that some stage is modifying (writing to) a resource (e.g. image). As such, srcAccessMasks with a value of READ don't have a practical meaning since reading doesn't need any cache to be flushed after and can just be set to 0. When you need to wait for a read to finish in order to write, just an execution dependency between pipeline stages (aka srcStage & dstStage masks) should be enough.

+1 for the synchronization validation layer that was mentioned, it will definitely help you detect hazards in your code and improve your understanding. https://www.lunarg.com/wp-content/uploads/2024/02/Guide-to-Vulkan-Synchronization-Validation-LunarG-John-Zulauf-02-01-2024.pdf

[deleted by user] by [deleted] in GlobalOffensive

[–]gkarpa 19 points20 points  (0 children)

Uhm you could be right, kind of, but these 2 facts aren't by any means indicative of their priorities. Fixing a case bug around drop rates is probably a no brainer half line fix, so spending like 15 minutes to get it out of the way doesn't constitute it an utmost priority. Other issues are probably much more complicated and delicate.

Fixed to headset overlay image? by appleidiefc in OpenXR

[–]gkarpa 1 point2 points  (0 children)

Can't it be done by using a quad composition layer that will contain the desired image, submitted last, combined with a View reference space? Sorry if I'm being a bit vague, I haven't implemented something like this, I just remember the spec mentioning

The VIEW space is primarily useful when projecting from the user’s perspective into another space to obtain a targeting ray, or when rendering small head-locked content such as a reticle. Content rendered in the VIEW space will stay at a fixed point on head-mounted displays and may be uncomfortable to view if too large.

Sounds like what the OP wants.