We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
68 views

Projection Matrix Causes Clip Cuttoff Problem

I'm trying to setup my renderer and I'm configuring the matrices. I currently have a View Matrix and a Projection Matrix which I then multiply and send to the shader(there's no need for model matrix ...
0
votes
0answers
15 views

How can I use the Vulkan API with AIDE (an IDE)?

I've tried to compile some of the basic samples of the NDK using Vulkan on GitHub but AIDE gives me errors about not finding the shaderc folder. Apparently you have to build shaderc with ndk-build ...
0
votes
0answers
31 views

How to divide commands to CommandLists in DirectX12/Vulkan?

Currently my DirectX graphics engine submits all draw commands in a single, large CommandList. I want to paralellize my CommandList recording to improve performance on CPU side, but I'd have to ...
0
votes
0answers
18 views

Bash script crashes when sourcing

I have been following a tutorial about setting up vulcan on macOS and have been having trouble. I think it might have something with the versions. I am using 1.1.101.0 and the tutorial uses 1.1.73.0 ...
1
vote
1answer
84 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
82 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 ...
1
vote
1answer
126 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
83 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
301 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
159 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 ...
3
votes
0answers
122 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
178 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
171 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
195 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
204 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
186 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
139 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
275 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
559 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
385 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
974 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 ...
3
votes
0answers
2k 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
1k 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
485 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
2k 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 ...
1
vote
2answers
319 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
748 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
93 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
253 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
608 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
181 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
468 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 ...
2
votes
3answers
996 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
1k 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 ...
3
votes
0answers
265 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 ...
153
votes
3answers
124k 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 ...