[Mlir-commits] [mlir] [mlir][spirv]: Add `OpImageFetch` (PR #145873)
Igor Wodiany
llvmlistbot at llvm.org
Thu Jun 26 09:50:39 PDT 2025
================
@@ -51,3 +51,13 @@ spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, StorageImageWrit
spirv.Return
}
}
+
+// -----
+
+spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader, StorageImageWriteWithoutFormat, Linkage], []> {
+ spirv.func @image_fetch(%arg0 : !spirv.image<f32, Dim2D, NoDepth, NonArrayed, SingleSampled, NeedSampler, Unknown>, %arg1 : vector<2xsi32>) "None" {
----------------
IgWod-IMG wrote:
Actually, you can probably keep an Uknown format. I don't think ImageFetch has any restrictions. Either way is fine.
https://github.com/llvm/llvm-project/pull/145873
More information about the Mlir-commits
mailing list