26 questions
3
votes
0
answers
120
views
SPIR-V extension suddenly needed to use discard, why?
While loading spir-v shaders in my application I suddenly started getting the following validation error:
[ERROR: Validation]
vkCreateShaderModule(): SPIR-V Capability DemoteToHelperInvocation was ...
0
votes
1
answer
193
views
VkLayerSettingEXT example to enable khronos_validation.validate_gpu_based and khronos_validation.printf_to_stdout
How VkLayerSettingEXT should look like to enable khronos_validation.validate_gpu_based and khronos_validation.printf_to_stdout, because there is no VK_LAYER_SETTING_TYPE_*_EXT for enums.
I am ...
-1
votes
1
answer
292
views
How does the Vulkan Validation Layer assignment work?
I have started with Vulkan and just did the Validation Layers.
In here, they add a static function static VKAPI_ATTR VkBool32 VKAPI_CALL debugCallback(...) to the .cpp file, then simply assign
...
1
vote
1
answer
970
views
Vulkan VK_LAYER_KHRONOS_validation is Wrong Bit-Type
The Problem:
Hello! I am developing a Vulkan project between two 64-bit Windows systems, using the same MinGW/GCC build system on both. I am writing the program in C to challenge myself, and it has ...
2
votes
1
answer
466
views
vulkan_win32.h is not "recognized"
I'm following this Vulkan tutorial: https://youtu.be/dHPuU-DJoBM, in particular, this video https://youtu.be/6Kj3O2Ov1RU
when I run in VS code, this errors shows (there are a lot of them, but all of ...
0
votes
1
answer
2k
views
Vulkan - wrong ELF class: ELFCLASS32
I'm following this Vulkan tutorial, and I'm trying to implement validation layers - here is my code:
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <iostream>
#include <...
0
votes
2
answers
1k
views
Vulkan validation errors states my images are in the wrong layout, but only the two first times I present images from the swapchain
I have loosely been following this guide to setup some simple rendering in Vulkan using the raii headers in Vulkan-Hpp. I have skipped the Graphics Pipeline Basics section (except for the render pass ...
0
votes
1
answer
607
views
When I follow vulkan-tutorial example code, validation layer doesn't work
It's my first time to learnin vulkan. I try to follow https://vulkan-tutorial.com/Drawing_a_triangle/Setup/Validation_layers, but it doesn't work in using validation layer. Copy and paste this code(...
0
votes
1
answer
689
views
Vulkan MacOS- Cannot setup Debug Messenger
I am following the tutorial https://vulkan-tutorial.com/Drawing_a_triangle/Setup/Validation_layers
auto func = (PFN_vkCreateDebugUtilsMessengerEXT)vkGetInstanceProcAddr(instance, "...
1
vote
1
answer
250
views
Driver says it supports interface version 6 but still exports core entrypoints
I have experience in OpenGL and I'm starting to learn Vulkan, following from this tutorial, and I am onto the testing section.
However, instead of the intended output:
I'm getting the following ...
0
votes
1
answer
706
views
vkQueuePresentKHR image has invalid layout if no command buffers are submitted
I have a minimalistic Vulkan pipeline set up and all it does is clearing the backbuffer before presenting it. However, if I set .commandBufferCount = 0 I get the following validation error:
...
1
vote
0
answers
464
views
vulkan unable to find validation layers
I'm following a vulkan tutorial and when i'm trying to check for validation layer support.
the function always returns false when it is supposed to return true.
this is the code:
bool app::...
0
votes
2
answers
717
views
Vulkan Invalid attribAddress alignment for vertex attribute 0
I really do not understand what the validation error means. There is no alignment requirement for vertex shader attributes in VkPhysicalDeviceLimits.
Here is the full error:
[2022-02-07.20:42:38]: ...
0
votes
1
answer
1k
views
Vulkan image incompatibility, is there a nice way to check which parameters are incompatible?
My validation errors are returning the following error:
Message ID name: VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251
Message: Validation Error: [ VUID-VkImageCreateInfo-...
3
votes
1
answer
573
views
Binding Images without using them all in Vulkan
I trying to create a bloom effect for my vulkan game-engine.
To implement this I use several bulring pass, in each one I read from one image and render/write a slightly more blurry picture to a other.
...
0
votes
1
answer
2k
views
Vulkan queue waiting on semaphore that has no way to be signaled
Validation error:
VUID-vkQueuePresentKHR-pWaitSemaphores-03268(ERROR / SPEC): msgNum: 622825338 - Validation Error: [ VUID-vkQueuePresentKHR-pWaitSemaphores-03268 ] Object 0: handle = 0x2ad2f2d8a38, ...
3
votes
1
answer
3k
views
Using debugPrintfEXT in Vulkan
I'm trying to figure out how to use debugPrintfEXT but with no luck.
First I've enabled the extension in my vertex shader
#version 450
#extension GL_EXT_debug_printf : enable
void main()
{
...
0
votes
1
answer
467
views
How to set validation layers from within program rather than env var?
The official vulkan documentation claims:
Applications may programmatically activate layers via the vkCreateInstance() entry point.
And this is given as alternative to setting an environment ...
4
votes
2
answers
14k
views
How to make VK_LAYER_KHRONOS_validation available?
Solution:
Uninstall vulkan
In registry HKLM\SOFTWARE\Khronos\Vulkan\ExplicitLayers and HKLM\SOFTWARE\WOW6432Node\Khronos\Vulkan\ExplicitLayers remove everything
reinstall vulkan
I recently started ...
0
votes
1
answer
204
views
Couldn't find VkNonDispatchableHandle
I'm using Vulkan to create a simple program. After I resize the window, the validation layer gives me this output. The resize itself works fine. What does it say? The complete error is following:
...
5
votes
1
answer
6k
views
Vulkan VK_ERROR_LAYER_NOT_PRESENT
I'm currently learning vulkan with golang, and I've run into an issue creating the vulkan instance with validation layers. I'm trying to use VK_LAYER_KHRONOS_validation, and it shows up as an ...
0
votes
2
answers
3k
views
How to use a vulkan sampler with unnormalized texture-coordinates? (without triggering VUID-vkCmdDrawIndexed-None-02703)
So I have been using unnormalized coordinates in my texture-sampler since I find it easier to address certain parts of a texture when using it as a sprite atlas. Today I patched my workstation and ...
0
votes
1
answer
2k
views
Vulkan Validation Layer: loader_create_instance_chain: Failed to find 'vkGetInstanceProcAddr'
I followed this guide to create a very basic Vulkan program, and for some reason, even when completely copying the code from the guide (and not using my own version which is slightly different and ...
1
vote
1
answer
4k
views
Vulkan queue waiting on semaphore that can't be signaled
It seems I have had invalid code for a while but the validation layers were silent. After updating my sdk to the latest version I started getting this error:
Message ID name: VUID-vkQueuePresentKHR-...
0
votes
1
answer
1k
views
Cleanup of command buffers (and resources) after barrier-based synchronization; but the validation layers still complain
This is a specific question about barrier-based synchronization w.r.t. command buffer submission and cleanup of resources that are required by the command buffers (like used buffers and images).
Let'...
0
votes
1
answer
639
views
Vulkan, why do validation layers (and by extension the spec) forbid pipelines from not writing to certain attachments?
In vulkan, if under the lifetime of a single render pass you naively render to a framebuffer that contains multiple attachemnts with a pipeline that renders to all of them and then render again with a ...