Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
0answers
16 views

vkCmdCopyBuffer has no effect for transfer of staging buffer

for a vulkan renderer using vulkan-hpp and Vulkan Memory Allocator I am trying to transfer vertex data to the gpu using a staging buffer. Without using an intermediary staging buffer the transfer ...
0
votes
0answers
57 views

Conversion from single-plane to multi-plane texture formats in Vulkan

How can we copy a texture in VK_FORMAT_R8G8B8A8_UNORM to VK_FORMAT_G8_B8R8_2PLANE_420_UNORM under the assumption that no color ...
0
votes
0answers
32 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 ...
1
vote
1answer
64 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
1answer
171 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 (...
1
vote
1answer
134 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
110 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
93 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
101 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
127 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
117 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
164 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
112 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
205 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
427 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
261 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
683 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
1k 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
967 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
387 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
1k 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
245 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
571 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
80 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
223 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
519 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
170 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
411 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
797 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
958 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
251 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
5k 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 ...
142
votes
3answers
109k 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 ...