mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
feat(shader): add dst sel packing helper to ir metadata
This commit is contained in:
+4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user