[llvm] [SPIRV] Add reads from image buffer for shaders. (PR #115178)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 08:37:52 PST 2024


================
@@ -719,6 +720,11 @@ void RequirementHandler::initAvailableCapabilitiesForVulkan(
          Capability::UniformTexelBufferArrayNonUniformIndexingEXT,
          Capability::StorageTexelBufferArrayNonUniformIndexingEXT});
   }
+
+  // Became core in Vulkan 1.3
+  if (ST.isAtLeastSPIRVVer(VersionTuple(1, 6))) {
+    addAvailableCaps({Capability::StorageImageReadWithoutFormat});
+  }
----------------
Keenuts wrote:

nit:
```suggestion
  if (ST.isAtLeastSPIRVVer(VersionTuple(1, 6)))
    addAvailableCaps({Capability::StorageImageReadWithoutFormat});
```

https://github.com/llvm/llvm-project/pull/115178


More information about the llvm-commits mailing list