]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/vulkan/program_backend.cpp
Support compute shaders and compute operations
[libs/gl.git] / source / backends / vulkan / program_backend.cpp
index a962a78e61a5f3a9d1ccbd08310b6b15faea4f7d..993a3e38ef965d11b838fb9b41653cb2fe5b3b29 100644 (file)
@@ -175,6 +175,11 @@ void VulkanProgram::finalize_uniforms()
 #endif
 }
 
+bool VulkanProgram::is_compute() const
+{
+       return stage_flags&VK_SHADER_STAGE_COMPUTE_BIT;
+}
+
 void VulkanProgram::set_debug_name(const string &name)
 {
 #ifdef DEBUG