Hello,
I am developping a rendering application using vulkan on a Adreno 630 GPU (the platform is SDM845)
I tried using a compute shader to pre-process some of my attachments, but I have trouble using the barrier() function to synchronize my threads.
Anywhere I add the "barrier();" instruction, It makes my application crash.
I compile the glsl code using glslangvalidator to generate spir-v code for my compute shader.
the version of glslangvalidator I use is:
#version 460 #extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_shading_language_420pack : enable
Even if I start the main function with the barrier(); instruction, it makes my application crash:
uint rgbColIndex, rgbRowIndex;
barrier();
*** my code ***
}
Are there some prerequisits before being able to use that barrier() function?
Thanks,
Damien