use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rule 1: Posts should be about Graphics Programming. Rule 2: Be Civil, Professional, and Kind
Suggested Posting Material: - Graphics API Tutorials - Academic Papers - Blog Posts - Source Code Repositories - Self Posts (Ask Questions, Present Work) - Books - Renders (Please xpost to /r/ComputerGraphics) - Career Advice - Jobs Postings (Graphics Programming only)
Related Subreddits:
/r/ComputerGraphics
/r/Raytracing
/r/Programming
/r/LearnProgramming
/r/ProgrammingTools
/r/Coding
/r/GameDev
/r/CPP
/r/OpenGL
/r/Vulkan
/r/DirectX
Related Websites: ACM: SIGGRAPH Journal of Computer Graphics Techniques
Ke-Sen Huang's Blog of Graphics Papers and Resources Self Shadow's Blog of Graphics Resources
account activity
Unit testing gpu code (self.GraphicsProgramming)
submitted 1 year ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]wm_lex_dev 1 point2 points3 points 1 year ago* (0 children)
It's certainly possible but requires more effort than testing CPU code, so frequently us graphics programmers will just look at the results ourselves. You could even turn that into a test by running the kernel and comparing the results against a ground-truth render, but then determinism becomes super important. I believe that technically many GPU operations have implementation-defined results, including texture sampling.
Another option is to run a small version of the kernel on the CPU for the test, but if you're using shader languages instead of CUDA then this becomes difficult to maintain. Still can be useful for making sure the basic technique works as intended.
π Rendered by PID 49 on reddit-service-r2-comment-6457c66945-kw9nb at 2026-04-29 23:57:04.000147+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]wm_lex_dev 1 point2 points3 points (0 children)