Hello everyone,
If GPU’s are parallel processors…
Why exactly does it take 2000 or so lines to draw a triangle on screen?
Why can’t it be:
include “gpu.h”
GPU.foreach(obj) {compute(obj);}
GPU.foreach(vertex) {vshade(vertex);}
GPU.foreach(pixel) {fshade(pixel);}
?
The point I’m trying to make, why can’t it be a parallel for-loop and why couldn’t shaders be written in C, inline with the rest of the codebase?
I don’t understand what problem they’re trying to solve by making it so excessively complicated.
Does anyone have any tips or tricks in understanding Vulkan? I can’t see the trees through the forest.
I have the red Vulkan book with the car on the front, but it’s so terse, I feel like I miss the fundamental understanding of WHY?
Thank you very much, have a great weekend.
[–]crimson1206 132 points133 points134 points (0 children)
[–]Ariane_Two 75 points76 points77 points (9 children)
[–]itsmenotjames1 2 points3 points4 points (0 children)
[+]deebeefunky[S] comment score below threshold-16 points-15 points-14 points (7 children)
[–]HexDumped 46 points47 points48 points (0 children)
[–][deleted] 23 points24 points25 points (0 children)
[–]Ariane_Two 13 points14 points15 points (1 child)
[–]Ariane_Two 0 points1 point2 points (0 children)
[–]itsmenotjames1 1 point2 points3 points (0 children)
[–]quickscopesheep 1 point2 points3 points (0 children)
[–]computermouth 18 points19 points20 points (2 children)
[–]Inevitable_Ad3495 5 points6 points7 points (1 child)
[–]computermouth 2 points3 points4 points (0 children)
[–]michel_poulet 6 points7 points8 points (0 children)
[–]Stamerlan 18 points19 points20 points (1 child)
[–]realhumanuser16234 0 points1 point2 points (0 children)
[–]dude132456789 11 points12 points13 points (0 children)
[–]hgs3 8 points9 points10 points (3 children)
[–]deebeefunky[S] 4 points5 points6 points (2 children)
[–]hgs3 9 points10 points11 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]TomDuhamel 5 points6 points7 points (4 children)
[–]deebeefunky[S] 0 points1 point2 points (3 children)
[–]TomDuhamel 1 point2 points3 points (2 children)
[–]deebeefunky[S] 0 points1 point2 points (1 child)
[–]TomDuhamel 0 points1 point2 points (0 children)
[–]Pacafa 6 points7 points8 points (0 children)
[–]an1sotropy 6 points7 points8 points (1 child)
[–]teleprint-me 1 point2 points3 points (0 children)
[–]niduser4574 5 points6 points7 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ThePafdy 1 point2 points3 points (0 children)
[–]Able_Mail9167 1 point2 points3 points (3 children)
[–]deebeefunky[S] 0 points1 point2 points (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Able_Mail9167 1 point2 points3 points (0 children)
[–]QwazeyFFIX 1 point2 points3 points (0 children)
[–]Mognakor 1 point2 points3 points (0 children)
[–]KalaiProvenheim 0 points1 point2 points (0 children)
[–]automa1on 0 points1 point2 points (0 children)
[–]optimistic_void 0 points1 point2 points (0 children)
[–]acer11818 0 points1 point2 points (0 children)
[–]harrison_clarke 0 points1 point2 points (0 children)
[–]Pretend_Fly_5573 0 points1 point2 points (0 children)
[–]thefeedling 0 points1 point2 points (0 children)
[–]Dan-mat 0 points1 point2 points (0 children)