KhronosGroup / glslang

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

SPV: Complete OpAssumeTrueKHR, OpExpectKHR #3490

Closed younggwan-arm closed 5 months ago

janharaldfredriksen-arm commented 5 months ago

Are you using glslang's built-in disassembly after emitting them via intrinsics?

Exactly. The CTS for this (VK_KHR_shader_expect_assume) was written with intrinsics. That worked fine, except we needed the changes here.

We are working on an actual GLSL extension (and glslang support) for this as well, but it will take a little bit longer for that PR to land upstream.

arcady-lunarg commented 5 months ago

It would be nice if the doc.cpp stuff could be auto-generated because the current process of updating it manually wasn't really designed with intrinsics-based extensions in mind, but that's a much bigger change.