Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [vulkan]

Vulkan, previously known as Next Generation OpenGL or just GLnext, is a low-level, cross-platform graphics API from the Khronos Group.

0
votes
0answers
25 views

Problem with 2D game on android. Random FPS drop with OpenGLES 2.0, sudden white screen with Vulkan

I'm having a problem with my 2D game on Android. When I use OpenGLES 2.0 as the graphics API, I experience sudden FPS drops in the game. The game starts to slow down sometimes randomly, And it can ...
0
votes
0answers
30 views

Vulkan - preallocating chunks of memory and resource memory requirements

I would like to allocate a bigger chunk of memory and then suballocate from it but I don't fully understand how memory requirements work, is there a chance that when I allocate a piece of device local ...
0
votes
0answers
18 views

Vulkan creating shader module from spirv generated with -fhlsl_functionality1 flag

Whenver I compile the shader with this flag for semantic reflection and I try to create a module from it I get this error: ...
0
votes
1answer
137 views

Vulkan rendering of Minecraft-like world in C++

I decided on using 16x16x16 (4096 total) chunks of blocks. Problem is with textures. First idea was about texture atlas but it would require a lot of calculation and possible problems in dividing UV (...
0
votes
0answers
29 views

Confused about Vulkan and dx12 queues

in vulkan when I ask for info about my gpu it tells me that I have 16 graphics queues, I also heard that if you use 2 graphics queues it won't make your program faster, just more complicated since one ...
1
vote
1answer
128 views

Why do GPUs have limited amount of allocations?

I've been learning Vulkan lately and I read that you can allocate VRAM memory only set amount of times and it doesn't matter if it's 2gb or 2kb, why is it? I'm specifically referring to ...
2
votes
0answers
105 views

Are GPU drivers hand optimized for specific games using low-level APIs?

The GPU drivers often have slightly different behavior depending on game or program, which is using them. It optimizes performance, bypasses bugs and improves overall experience in popular games, ...
1
vote
0answers
59 views

GLSL to Spir_V using GLSLang

I have been working with GLSLang to convert between GLSL and SpireV for the purpose of run time shader compilation. GLSLlang compiles my shader code and I can successfully create and run a compute ...
2
votes
1answer
76 views

Solving a recursive problem in the geometry (or any other) shader

I would like to calculate an effect of an external force on a binary tree (wind on a tree). It's a recursive function - take a (parent) node and calculate the angle to rotate all of the nodes "...
0
votes
1answer
103 views

Tangent space normal mapping visual problem along UV islands (using Vulkan)

I'm learning Vulkan and computer graphics. First time implementing normal mapping. I've been struggling with this for days now and I can't seem to find the problem - so that's the question. What is ...
0
votes
0answers
84 views

Vulkan: Unable to render using multiple view ports

I have been trying to enable multiple viewports in my Vulkan Pipeline but have been unsucsessfull. I used this code sample as a reference point. The problem is that when I attempt to draw two side by ...
2
votes
1answer
152 views

Why does a call to vkCreateInstance() take noticeable time to complete?

I decided to learn Vulkan and started writing a simple program. I then ran the program (which only called vkCreateInstance()) to see if the Vulkan instance was created successfully and was shocked to ...
1
vote
0answers
106 views

How good is Vulkan support? [closed]

I'm thinking about writing a program in Vulkan instead of OpenGL, but I'm worried about the current and possible future success of this API. Is this API likely to become as widdespread as OpenGL, or ...
2
votes
2answers
179 views

Implementing spot lights in Vulkan and some pixels are black

TL;DR; I have come to the conclusion that the problem is linked to the spot light being too close to the camera. Which only made me more confused. Long version; I have sat with this my whole day and ...
0
votes
1answer
349 views

Vulkan Storage Buffers, loss of data

I have been passing glm::vec3's in an array to a storage buffer to be processed by a compute shader, but once it has been modified I am getting some malformed data back. Shader ...
-1
votes
1answer
236 views

Vulkan read from storage buffer

I have been attempting to push data to a storage buffer then then read back from it but to no avail. I am creating the buffer like I always do, populate it with VK_BUFFER_USAGE_STORAGE_BUFFER_BIT ...
0
votes
1answer
570 views

Vulkan am I creating too many graphics pipelines?

I have the situation in which I require different VkPrimitiveTopology's for different models, which requires me to have a unique pipeline's that render the different models, but now I require multiple ...
2
votes
0answers
981 views

Vulkan Drawing lines

I want to be able to draw single lines inside Vulkan but the only way I have managed to achieve this so far is by drawing a triangle with two of its points that ocupuy the same point in space. Is ...
0
votes
1answer
792 views

Vulkan rendering lots of objects

I'm wanting to render multiple objects on a screen and in some cases several of each object. I'm not sure what the best method of doing this is and was wanting some advice. The only way I can think of ...
0
votes
1answer
354 views

Passing a unique Uniform buffer with each model

I have been following "Vulkan Tuturial" on GitHub as a reference on how to get basic objects rendering. In their tutorial, they create the command buffers at the start of the application after they ...
1
vote
2answers
938 views

Vulkan best practice when submitting draw commands

As with most projects working in a graphics library, I need to dynamically send draw calls to the command buffers, but what is the best way to do this? Currently, for every frame, I rebuild my command ...
0
votes
2answers
224 views

Need help understanding VkCommandBuffer and VkCommandPool

I'm creating my first Vulkan project and I'm at the point where I need to send commands to the GPU. Now I need help understanding how and when commands are being executed and what sort of commands can ...
0
votes
1answer
524 views

What is the “correct” way to render to a cubemap using Vulkan?

After searching far and wide for the solution to this, the only one I have been able to find that verifiably works is to the render a face to a framebuffer and then use a memcpy to copy that ...
0
votes
1answer
77 views

Setting font color, Vulkan

I am new using Vulkan, and i am trying to learn it looking tutorials and looking the vulkan examples that they provided(vulkan-master: https://github.com/SaschaWillems/Vulkan). One of them is the ...
0
votes
1answer
211 views

Mipmapping on CPU

I'm trying to load a big terrain texture and only want to load a certain mipmap level to the GPU with Vulkan. When the whole terrain is in sight, the camera is far enough away from it so that only a ...
-10
votes
2answers
491 views

Does Microsoft prevent developers from using Vulkan?

So, I recently came across a source which stated that if you choose to use Direct3D 12 in your game, you have to sign a contract with Microsoft that prohibits you from using Vulkan in the future. It ...
1
vote
0answers
163 views

Are there any advantages of Vulkan using traditional methods? [closed]

I keep hearing that Vulkan meant for direct low level operations with the GPU and hence it's targeted toward expert and experienced graphics programmers. What would be some other advantages of Vulkan ...
0
votes
2answers
391 views

Simplst possible TBN-Matrix giving weird results

I'm implementing normal mapping and was trying different techniques of doing that. All seemed not to give me a correct result (e.g. the normals point in weird directions). To find the problem, I broke ...
1
vote
3answers
742 views

Vulkan Error: cmd buffer submit cant use image because of layout

I've been coding a Vulkan rendering engine for the past few weeks. My code still continues to execute and I get the desired output, but I am getting an error. I'm fairly certain that my error is a ...
6
votes
1answer
846 views

How to select the most powerful vkDevice?

I've been messing around with Vulkan recently. In all of my experiments, when I select a gpu/vkDevice, I always just take the first one vulkan provides. I've looked at the documentation for vkDevice, ...
7
votes
1answer
1k views

How do I find out at runtime if Vulkan and/or OpenGL support is available?

I'm building an engine, which has Vulkan for its primary rendering engine. But to have at least some backwards compatibility with devices that don't get drivers for (Mainly mobile) it I want to ...
2
votes
0answers
234 views

Texture Mapping to procedurally generated geometry

How can I calculate texture coordinates of such geometry? The angle shown in the image (89.90 degree) may vary, therefore the geometry figure is changing and is not always such uniform.(maybe like ...
8
votes
2answers
1k views

Vulkan vkEnumeratePhysicalDevices Returning Unexpected Device Count

In the machine I'm running I have two GTX 980 Tis. When I query the physical device count with vkEnumeratePhysicalDevices it always returns 1 despite having 2 ...
3
votes
1answer
4k views

Will Vulkan Kill the use of GLSL? [closed]

After reading this link I am still unclear as to the shading language support in Vulkan. As Vulkan only supports SPIR-V is it the case that GLSL is therefore being phased out? Are there any ...
139
votes
3answers
104k views

What is Vulkan and how does it differ from OpenGL?

Khronos Group (the standards body behind OpenGL) has just announced Vulkan: Vulkan is the new generation, open standard API for high-efficiency access to graphics and compute on modern GPUs. This ...