KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
2.9k stars 816 forks source link

Fix issues of the interaction between cooperative_matrix and spirv_intrinsics #3550

Closed amdrexu closed 3 months ago

amdrexu commented 3 months ago

coopmat<> type definition allows type parameters. To make it accepte types defined by spirv_type directive, we add spirvType info to the type parameters. This change is to support this case. And a test is added to show the missing usage.

amdrexu commented 3 months ago

Looks good, I assume in practice this will be used for other extension-defined types that aren't just half-floats.

Yes, it is used to do some experiments on other future arithmetic types.