feat(shader): add dst sel packing helper to ir metadata

This commit is contained in:
boykopovar
2026-09-17 14:02:22 +03:00
parent c941b73a5e
commit 00fd1c2990
@@ -148,6 +148,10 @@ enum class IrTextureNumericClass { Unsupported, Float, Uint, Sint };
inline constexpr std::uint32_t ShaderImageIdentitySwizzle = 0x00000facu;
[[nodiscard]] constexpr std::uint32_t DstSel(std::uint32_t x, std::uint32_t y = 0, std::uint32_t z = 0, std::uint32_t w = 0) {
return (x & 0x7u) | ((y & 0x7u) << 3u) | ((z & 0x7u) << 6u) | ((w & 0x7u) << 9u);
}
enum class ResourceKind {
None,
ScalarBuffer,