r/vulkan • u/Flux247A • Sep 17 '24
r/vulkan • u/kontis • Mar 17 '16
Keith Newton: Vulkan's shader compiler ecosystem - a disaster of epic proportions, 30% slower than D3D11, but long-term promise pretty great.
forums.inovaestudios.comr/vulkan • u/LordMegatron216 • Feb 08 '26
Is learning boilerplate vulkan code necessary?
Hi, I'm new to vulkan and also I have adhd.
I started to vulkan a few months ago (and like worked just 2 3 days in this few months to vulkan) with vulkan-tutorial.com and all that code that you wrote to just draw a triangle is killing me. I want to really learn it, but also I can't stand to TRY learn all that pages of code that probably I never change a thing. I think you call these code "boilerplate".
I read and practiced first few chapters with really liking it but after some point I got extremely bored and not doing anything for months.
So after some time I realized that I can just copy entire code in end of tutorials, and now I'm at drawing first triangle part.
I can just continue from that part, or I need to know what happened in the part that I didn't see?
I'm in physics major, I want to code advanced physics simulations like plasma simulations, MHD etc. But also I don't want to stuck old tech like opengl. What should I do?
r/vulkan • u/innolot • 24d ago
Cybertruck Modeling in my VulkanCad
Modeled a Tesla Cybertruck in my VulkanCAD, my Vulkan-based CAD engine, using scripts (SH, BAT, etc.). Watch the 3D model take shape step by step, from the body to the wheels and windows.
직접 개발 중인 Vulkan 기반 CAD 엔진에서 스크립트(SH, BAT 등)를 활용해 테슬라 사이버트럭을 모델링했습니다. 차체부터 바퀴와 창문까지 단계적으로 완성되는 과정을 담았습니다.
r/vulkan • u/cudaeducation • Mar 25 '22
Apple M1 Chip & the Vulkan API | Do they work together? | What will creatives use?
Hey Guys,
I need some context to all that is new in the world today.
So Apple has released the M1 chip which includes both a CPU and GPU.
My question is, how does the Vulkan API interface with this new hardware going forward? Is MoltenVK supposed to be the interface between M1 and Vulkan? I'm not talking about running games or applications, but actual computer graphics software development.
This is further fragmentation in the space. If computer graphics creatives all move over to Apple hardware, does that render Windows development and the NVIDIA graphics card ecosystem obsolete? I'm not sure if the M1 GPU is superior to the NVIDIA GPU, but I sense that it will give NVIDIA serious competition.
I hope the Khronos Group addresses this soon.
-Cuda Education
r/vulkan • u/htuhola • Feb 14 '17
Terraforming the Vulkan
Vulkan is an very unwelcoming API, especially to beginners. There are even few very interesting rumors spreading around:
Rumor that a Vulkan can be only used by companies that have funding prepared for +5 years, Nvidia and AMD on dialup and an access to a large automated GPU test farm.
Rumor that most of things stuffed into Vulkan will stop to matter in just few years, leaving the relevance of the API short.
I do not think these kind of rumors are nice, but I have no way to verify or invalidate any of them. Nevertheless, the concerns about usability forms a resistance against Vulkan.
For example the WebVulkan is being disqualified by this basis. There are otherwise no impenetrable technical limitations to exposing Vulkan on the web platform.
I think there is an equally likely opposite scenario. Vulkan may enable gpu graphics and computing for the crowds. I jokingly titled it "terraforming". What I mean is abstracting or adding layers above Vulkan in order to make it sane to work with on daily basis on daily graphics programming that is not about ejecting man juices towards ultimate performance on every platform.
It is not a feasible idea to have an API only for optimum performance. Often we would rather have adequate performance now and possibility to optimize it afterwards.
These ideas are fairly important for web GPU computing, especially after the discussion about that subject has started. Running code on GPU must become as easy as running code on a CPU. Otherwise the use remains limited.
I have already exposed Vulkan API on a dynamically typed programming language. I have been gradually improving the abstractions. Vulkan actually makes this easy.
There are four basic things that reduce Vulkan verbosity to under the third of what it is on C. Here they are in the order of their effectiveness:
Vulkan is a structure-full API, therefore you should make it easy to fill up structures. In a dynamically typed language you can automatically fill up structures from JSON objects like this:
result = vkCreateInstance({
applicationInfo = {
applicationName = "terraforming",
applicationVersion = 1
},
enabledLayerNames = [],
enabledExtensionNames = []
}, null, p_instance)The vulkan xml spec is annotated so that you automatically determine how to fill up fields using a list without a danger of guessing it wrong.
For above thing to work your FFI must maintain an allocation pool during the function call, such that the structures end up allocated from the pool that is discarded after the call. The items allocated should be automatically zeroed. This vastly reduces the effort to fill up those structures and lets you even ignore some of the fields that are reserved for future use.
Second thing you should do is to automatically check the errors of the functions that return VkResult and turn those error codes into exceptions. This allows the user to react on them only when she needs to do that.
The third thing you should resolve automatically are the enumerations and bitflags. Vulkan enumerations are verbose yet they become very elegant this way. Instead of having to write:
properties.queueFlags & VK_QUEUE_GRAPHICS_BIT != 0
flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT | VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BITYou can write:
properties.queueFlags.GRAPHICS_BIT
flags = ["ONE_TIME_SUBMIT_BIT", "RENDER_PASS_CONTINUE_BIT"]Fourth thing, the least important but otherwise completing piece of sanitizing the Vulkan API this way is to wrap the Vulkan objects. It is important to wrap the objects such that they have a namespace and that they can implicitly unwrap themselves when passed into C functions. Here's the effect:
vkQueueSubmit(queue, [submit_info], fence)
queue.submit([submit_info], fence)These are just the starters. After you've done the above things you'll want to provide utilities such as a memory or WSI manager. It is important that the subsequent elements are optional for your users and that they can switch away or between them depending on their needs.
Even after memory management Vulkan API is still fairly hostile interface. I have written a gist document that goes further on the subject of abstracting Vulkan: WarpGPU ideas for Vulkan abstraction layer.
I still need few ideas before I can say Vulkan is friendly to use. Also I am not sure how much differences between hardware is going to hamper this. I'm open for propositions and ideas how to further "terraform" Vulkan.
And I repeat: This is an important subject for us all.
P.S. On Web I would prefer that the next GPU computing API introduces runtime integrated vector and matrix arithmetic along itself. It is really not acceptable that you can't write things such as n * dot(a, M*c) on Javascript at all, and without worrying about it constantly filling your GC heap with trash.
Update: Afterwards I regret that I shared my fears with you yet I didn't spent enough time to format the message.
I received lots of good feedback that I think is worthwhile to share.
Even if writing the middleware was expensive, it is still better than evading the inevitable implementation bugs of different driver vendors in more abstract API such as OpenGL.
Vulkan mostly represents the state where the GPU hardware has converged to since the OpenGL 4. It comes with the limitations of the OpenGL that are still relevant, and with some new limitations that have become relevant. Even if all of the details were already irrelevant, the API still represents about 7 years of existing hardware that can be supported via Vulkan.
During the next 10 years GPU computing is going to become more simple. Vulkan goes to the right generic direction:
There's less between you and the hardware.
You have virtual address space for data. Everything is stored in this address space.
You have controlled heap for the programs. The programs are compiled and loaded from SPIR-V.
The pipeline consists of whatever rigid stages there was in the OpenGL.
User can decide himself which resources to synchronize.
Writing middleware on top of Vulkan is easier than writing it on top of OpenGL because all state transition are required to be explicit in Vulkan. For instance, the synchronization can be automated if you can point out every write and read on resources your program is doing for your program.
It is likely that eventually we'll get APIs over Vulkan that are far more comfortable to use compared to anything we used to have. It just takes a while until we get there. There are upcoming GDC 2017 sessions related to this subject such as the FrameGraph: Extensible Rendering Architecture in Frostbite.
r/vulkan • u/cudaeducation • Jan 07 '24
Vulkan API walkthrough examples you can learn from | Cuda Education
Hi Guys,
I believe the best way to learn how the Vulkan API works is to study and tinker with working code.
Below is a list of videos using the gears.cpp script (freely available on GitHub) to learn how Vulkan works.
Please check them out, and also tell your friends, especially ones that are creatively inclined. Encourage a group of your friends to learn computer graphics.
Enjoy!
prepareVertices() https://youtu.be/6v116UMm6pc?si=cLX1VgM8-f5dfoNt
setupDescriptorSetLayout() https://youtu.be/Z9g37P5zg1Y?si=4znSaRuQlXnqfiJI
preparePipelines() https://youtu.be/7E14_9KL3lU?si=v05W1kNsWjhVxspr
setupDescriptorPool() https://youtu.be/9rXXKzBzDbI?si=V5wjRCh4t8kfzeR6
setupDescriptorSets() https://youtu.be/M72NKj2eNn4?si=pXWziZLLt3GXvYXI
updateUniformBuffers() https://youtu.be/VsgUhVp_GiM?si=RGKod-wfA7EdTvhG
buildCommandBuffers() https://youtu.be/NAq_mprpayg?si=qkDkwqDGrhGkpw89
-Cuda Education
r/vulkan • u/S48GS • Mar 31 '20
AMD Vulkan drivers has lots of very critical bugs, that literally make Vulkan unusable on any AMD hardware
Why I write this - only to share that info about bugs I forund. This is not against AMD or Vulkan. I hope this post wont get deleted.
What I do - creating very simple Vulkan application to launch my own old shaders in Vulkan, previously they work in OpenGL. During this process I have found and report some bugs to AMD:
AMD driver use 6Gb RAM to load 250Kb SPIR-V, that I found in this app
AMD any not linear logic bug, that I randomly found just sending 128bytes push_contants
Last week I have continue developing my framework, and developing new shaders, this how I found Bug 3, image that display how this bug has affect to almost any application, reading 128 bytes push_constants is broken.
Bug 3 minimal code is (launch Main2() from your any GLSL shader on AMD it make application crash):
void main2()
{
int i=0;
if(i==0)return;
else return;
for (int i=0; i < 1; i++) {
}
return;
}this bug may affect any large shader, for some reasont it not happend in my own large shader, or obviously in UE4 shaders or other big game engine shaders. I have test this bugs on many AMD hardware, bug exist.
I have send bugreport to glslang SPIR-V compiler, reply there told that is not their bug.
My tests to download, Warning contain *.exe: download test_AMD_shader_ub.zip test_1 and test_3 will be broken on AMD.
Valid test link download valid_AMD_ub_test.zip if you think this is because "validation errors" in my original code
r/vulkan • u/FootballElectronic28 • May 01 '26
The power of Vulkan in Godot 4.5
The power of Vulkan in Godot 4.5 (Forward+). Despite my poor modeling, the buildings turned out quite vibrant, what do you think? The FPS didn't even drop significantly, and the dynamic shadows (depending on the sun) are also great. I'm not particularly skilled with Blender, so this is a small room without any fancy reflections or anything like that.

r/vulkan • u/[deleted] • Mar 11 '17
There should be a stickied post about Vulkan's situation
I'm new to this sub and idk what's up with vulkan and want to know it's situation, how's it coming along, release dates, demos dates, any other info, either it should be updated regularly or weekly post or monthly
r/vulkan • u/DJ-P • Jan 02 '21
Is this what "System Graphics Drivers" runs on?
I'm on Android 10 on a flagship Android phone. I'm able to change my drivers for certain applications from their dedicated drivers (game drivers) over to system graphics divers.
In certain games I have seen substantial improvements in frame rate, albeit looking slightly different, but effectively the same. Is Vulkan, the amazzing driver-whatever to thank for this?
r/vulkan • u/heiytor • Sep 20 '22
MESA-INTEL: warning: Haswell Vulkan support is incomplete
I've been trying to install league of legends by this guide. But, this error occurs and a black screen is displayed
lutris-wrapper: /home/Heitor/.local/share/lutris/runners/wine/lutris-ge-lol-7.0-5-x86_64/bin/wine
Started initial process 846347 from /home/Heitor/.local/share/lutris/runners/wine/lutris-ge-lol-7.0-5-x86_64/bin/wine /home/Heitor/Games/league-of-legends/drive_c/windows/explorer.exe /home/Heitor/.cache/lutris/installer/league-of-legends/lol_installer/live.na.exe
Start monitoring process.
fsync: up and running.
MESA-INTEL: warning: Haswell Vulkan support is incomplete
Initial process has exited (return code: 0)My PC:
[System]
OS: Arch Linux
Arch: x86_64
Kernel: 5.19.9-arch1-1
Desktop: Not found
Display Server: x11
[CPU]
Vendor: GenuineIntel
Model: Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz
Physical cores: 2
Logical cores: 4
[Memory]
RAM: 3.5 GB
Swap: 4.0 GB
[Graphics]
Vendor: Intel
OpenGL Renderer: Mesa Intel(R) HD Graphics 4400 (HSW GT2)
OpenGL Version: 4.6 (Compatibility Profile) Mesa 22.1.7
OpenGL Core: 4.6 (Core Profile) Mesa 22.1.7
OpenGL ES: OpenGL ES 3.2 Mesa 22.1.7
Vulkan: SupportedAny solutions?
r/vulkan • u/Regular-Ad-2122 • Oct 06 '24
Should i learn Vulkan with Python or with C++ ? as complete beginner in graphics
Why python?
im more comfortable with python and its easily understandable for me
why not c++?
i haven't learn c++ yet soo ill have to learn it parallely
well i CAN go with c++ if i have to face problems with python in future...
r/vulkan • u/tsuru • Apr 21 '15
Will the 2D API rival performance of 'standard' drivers?
The OpenGL 2D API does not generally have the same performance of the standard graphics driver canvas (e.g. DDX from linux perspective), or at least I've seen it argued many times. Will Vulkan's 2D API be able to meet or beat the standard driver for 2D canvas drawing? At the very least, will it perform better than OpenGL's 2D api?
r/vulkan • u/hekoone • Jan 09 '18
Found a bug of Vulkan+MSI Afterburner+Wolfenstein 2 NC
System: Win10 x64 + GeForce 1050 Ti (388.71 + VK 1.0.65)
*Install MSI Afterburner 4.2.2 + RTSS and launch it *Install Wolfenstein 2 NC *Launch and autoconfigure Wolfenstein 2 NC with MSI Afterburner + RTSS on background *Play some time: it seems all right, all works perfectly *Exit Wolfenstein 2 and close (kill) MSI Afterburner + RTSS *Re-launch Wolfenstein 2 and see massive/awesome memory leaking symptoms: game is now totally unplayable *Possible dangerous exploits of the (virtual) memory leaking?
It seems that Afterburner hooking (and the NOT hooking) can cause some misreading of the actual VRAM size with Vulkan applications.....
r/vulkan • u/Fluid-Ad1663 • Jan 08 '23
How to write Vulkan driver for intel HD graphic 4000?
Hi, currently, I want to learn Vulkan and I discover that my intel HD graphic 4000 does not support Vulkan at least in Windows, because I also find some partial implementations of Vulkan but on Linux. How can I start to write a basic Vulkan driver? I think I may start on Linux first then on Windows later .
r/vulkan • u/innolot • Aug 10 '26
Using a Local LLM to Generate a 3D Floor Plan in My Vulkan Engine
I connected a local AI model(qwen) to my Vulkan CAD engine. The AI understands room sizes, layouts, doors, and windows from a natural-language description, then converts them into commands that generate the complete 3D floor plan. In this video, I create a layout with a central corridor and four rooms in a single request.
직접 개발 중인 Vulkan CAD 엔진에 로컬 AI(qwen)를 연결했습니다. 방의 크기와 배치, 문과 창문의 위치를 한글로 설명하면 AI가 명령을 분석하고 엔진이 3D 평면도를 자동으로 생성합니다. 이번 영상에서는 중앙 복도와 방 4개가 있는 구조를 한 번에 만드는 과정을 보여드립니다.
r/vulkan • u/xavierclementantoine • Feb 18 '26
Server Side Rendering
How can server-side rendering be done with Vulkan? Has anyone here done it before?
r/vulkan • u/nomis6432 • Dec 27 '16
How long before vulkan becomes the standard?
I'm thinking about building a new pc next summer (hopefully with the new nvidia volt architecture) and was wondering how long it would take for vulkan to become standard. I'm not really a big fan of windows and the only thing holding me back for switching to linux is the video game support. I'm sure that when everyone uses vulkan much more games will be ported to linux but I'm not sure how long it will take for the game industry to adapt to vulkan.
r/vulkan • u/OGLDEV • May 20 '24

