diff --git a/samples/ComputeSharp.SwapChain/Program.cs b/samples/ComputeSharp.SwapChain/Program.cs index 3e0d87df..2c1a880b 100644 --- a/samples/ComputeSharp.SwapChain/Program.cs +++ b/samples/ComputeSharp.SwapChain/Program.cs @@ -16,7 +16,8 @@ namespace ComputeSharp.SwapChain new SwapChainApplication(static (texture, time) => new(texture, (float)time.TotalSeconds)), new SwapChainApplication(static (texture, time) => new(texture, (float)time.TotalSeconds)), new SwapChainApplication(static (texture, time) => new(texture, (float)time.TotalSeconds)), - new SwapChainApplication(static (texture, time) => new(texture, (float)time.TotalSeconds)) + new SwapChainApplication(static (texture, time) => new(texture, (float)time.TotalSeconds)), + new SwapChainApplication(static (texture, time) => new(texture, (float)time.TotalSeconds)) }; static void Main() diff --git a/samples/ComputeSharp.SwapChain/Shaders/ExtrudedTruchetPattern.cs b/samples/ComputeSharp.SwapChain/Shaders/ExtrudedTruchetPattern.cs new file mode 100644 index 00000000..c0d333f6 --- /dev/null +++ b/samples/ComputeSharp.SwapChain/Shaders/ExtrudedTruchetPattern.cs @@ -0,0 +1,298 @@ +namespace ComputeSharp.SwapChain.Shaders +{ + /// + /// A basic extruded square grid-based blobby Truchet pattern. + /// Ported from . + /// Created by Shane. + /// + [AutoConstructor] + internal readonly partial struct ExtrudedTruchetPattern : IComputeShader + { + /// + /// The target texture. + /// + public readonly IReadWriteTexture2D texture; + + /// + /// The current time since the start of the application. + /// + public readonly float time; + + /// + /// Curve shape - Round: 0, Semi-round: 1, Octagonal: 2, Superellipse: 3, Straight: 4. + /// + private static readonly int SHAPE = 0; + + /// + /// Object ID: Either the back plane or the metaballs. + /// + private static int objID; + + // Standard 2D rotation formula. + private static Float2x2 Rotate2x2(float a) + { + float c = Hlsl.Cos(a), s = Hlsl.Sin(a); + + return new(c, -s, s, c); + } + + // IQ's Float2 to float hash. + private static float Hash21(Float2 p) + { + return Hlsl.Frac(Hlsl.Sin(Hlsl.Dot(p, new Float2(27.619f, 57.583f))) * 43758.5453f); + } + + // Various distance metrics. + private static float Distance(Float2 p) + { + if (SHAPE == 0) + { + return Hlsl.Length(p); + } + else p = Hlsl.Abs(p); + + switch (SHAPE) + { + case 1: return Hlsl.Max(Hlsl.Length(p), (p.X + p.Y) * 0.7071f + 0.015f); + case 2: return Hlsl.Max((p.X + p.Y) * 0.7071f, Hlsl.Max(p.X, p.Y)); + case 3: return Hlsl.Pow(Hlsl.Dot(Hlsl.Pow(p, 3), 1), 1.0f / 3.0f); + default: return (p.X + p.Y) * 0.7071f; + } + } + + // GLSL's mod function + private static float Mod(float x, float y) + { + return x - y * Hlsl.Floor(x / y); + } + + // A standard square grid 2D blobby Truchet routine: Render circles + // in opposite corners of a tile, reverse the pattern on alternate + // checker tiles, and randomly rotate. + private static float Truchet(Float2 p) + { + const float sc = 0.5f; + Float2 ip = Hlsl.Floor(p / sc) + 0.5f; + + p -= ip * sc; + + float rnd = Hlsl.Frac(Hlsl.Sin(Hlsl.Dot(ip, new Float2(1, 113))) * 45758.5453f); + + if (rnd < .5) p.Y = -p.Y; + + float d = Hlsl.Min(Distance(p - 0.5f * sc), Distance(p + 0.5f * sc)) - 0.5f * sc; + + if (SHAPE == 4) + { + d += (0.5f - 0.5f / Hlsl.Sqrt(2.0f)) * sc; + } + + if (rnd < 0.5f) d = -d; + if (Mod(ip.X + ip.Y, 2.0f) < 0.5f) d = -d; + + return d - 0.03f; + } + + // The scene's distance function: There'd be faster ways to do this, but it's + // more readable this way. Plus, this is a pretty simple scene, so it's + // efficient enough. + private static float M(Float3 p) + { + float fl = -p.Z; + float obj = Truchet(p.XY); + + obj = Hlsl.Max(obj, Hlsl.Abs(p.Z) - 0.125f) - Hlsl.SmoothStep(0.03f, 0.25f, -obj) * 0.1f; + + float studs = 1e5f; + const float sc = 0.5f; + Float2 q = p.XY + 0.5f * sc; + Float2 iq = Hlsl.Floor(q / sc) + 0.5f; + + q -= iq * sc; + + if (Mod(iq.X + iq.Y, 2.0f) > 0.5f) + { + studs = Hlsl.Max(Hlsl.Length(q) - 0.1f * sc - 0.02f, Hlsl.Abs(p.Z) - 0.26f); + } + + objID = fl < obj && fl < studs ? 0 : obj < studs ? 1 : 2; + + return Hlsl.Min(Hlsl.Min(fl, obj), studs); + } + + // Cheap shadows are hard. In fact, I'd almost say, shadowing particular scenes with limited + // iterations is impossible... However, I'd be very grateful if someone could prove me wrong. :) + private static float SoftShadow(Float3 ro, Float3 lp, Float3 n, float k) + { + const int iter = 24; + + ro += n * 0.0015f; + + Float3 rd = lp - ro; + float shade = 1.0f; + float t = 0; + float end = Hlsl.Max(Hlsl.Length(rd), 0.0001f); + + rd /= end; + + for (int i = 0; i < iter; i++) + { + float d = M(ro + rd * t); + + shade = Hlsl.Min(shade, k * d / t); + t += Hlsl.Clamp(d, 0.01f, 0.25f); + + if (d < 0.0f || t > end) break; + } + + return Hlsl.Max(shade, 0.0f); + } + + + // I keep a collection of occlusion routines... OK, that sounded really nerdy. :) + // Anyway, I like this one. I'm assuHlsl.Ming it's based on IQ's original. + private float CalculateAO(in Float3 p, in Float3 n) + { + float sca = 2.0f, occ = 0.0f; + + for (int i = (int)Hlsl.Min(time, 0f); i < 5; i++) + { + float hr = (i + 1f) * 0.15f / 5.0f; + float d = M(p + n * hr); + occ += (hr - d) * sca; + sca *= 0.7f; + + if (sca > 1e5f) break; + } + + return Hlsl.Clamp(1.0f - occ, 0.0f, 1.0f); + } + + // Standard normal function. + private static Float3 Normal(in Float3 p) + { + Float2 e = new(0.001f, 0); + + return Hlsl.Normalize(new Float3( + M(p + e.XYY) - M(p - e.XYY), + M(p + e.YXY) - M(p - e.YXY), + M(p + e.YYX) - M(p - e.YYX))); + } + + /// + public void Execute() + { + Int2 coords = new(ThreadIds.X, DispatchSize.Y - ThreadIds.Y); + Float2 u = (coords - (Float2)DispatchSize.XY * 0.5f) / DispatchSize.Y; + Float3 + r = Hlsl.Normalize(new Float3(u, 1)), + o = new(0, time / 2.0f, -3), + l = o + new Float3(0.25f, 0.25f, 2.0f); + + r.YZ = Hlsl.Mul(Rotate2x2(0.15f), r.YZ); + r.XZ = Hlsl.Mul(Rotate2x2(-Hlsl.Cos(time * 3.14159f / 32.0f) / 8.0f), r.XZ); + r.XY = Hlsl.Mul(Rotate2x2(Hlsl.Sin(time * 3.14159f / 32.0f) / 8.0f), r.XY); + + float d, t = Hash21(r.XY * 57.0f + Hlsl.Frac(time)) * 0.5f, glow = 0; + + for (int i = 0; i < 96; i++) + { + d = M(o + r * t); + + if (Hlsl.Abs(d) < .001) break; + + t += d * 0.7f; + glow += 0.2f / (1.0f + Hlsl.Abs(d) * 5.0f); + } + + int gObjID = objID; + Float3 p = o + r * t, n = Normal(p); + Float2 uv = p.XY; + float sc = 0.5f; + Float2 iuv = Hlsl.Floor(uv / sc) + 0.5f; + + uv -= iuv * sc; + + Float2 uv2 = p.XY + 0.5f * sc; + Float2 iuv2 = Hlsl.Floor(uv2 / sc) + 0.5f; + + uv2 -= iuv2 * sc; + + float bord = Hlsl.Max(Hlsl.Abs(uv.X), Hlsl.Abs(uv.Y)) - 0.5f * sc; + + bord = Hlsl.Abs(bord) - 0.002f; + d = Truchet(p.XY); + + float lSc = 20.0f; + float pat = (Hlsl.Abs(Hlsl.Frac((uv.X - uv.Y) * lSc - 0.5f) - 0.5f) * 2.0f - 0.5f) / lSc; + float pat2 = (Hlsl.Abs(Hlsl.Frac((uv.X + uv.Y) * lSc + 0.5f) - 0.5f) * 2.0f - 0.5f) / lSc; + float sf = Hlsl.Dot(Hlsl.Sin(p.XY - Hlsl.Cos(p.YX * 2.0f)), 0.5f); + float sf2 = Hlsl.Dot(Hlsl.Sin(p.XY * 1.5f - Hlsl.Cos(p.YX * 3.0f)), 0.5f); + Float4 col1 = Hlsl.Lerp(new Float4(1, 0.75f, 0.6f, 0), new Float4(1, 0.85f, 0.65f, 0), Hlsl.SmoothStep(-0.5f, 0.5f, sf)); + Float4 col2 = Hlsl.Lerp(new Float4(0.4f, 0.7f, 1, 0), new Float4(0.3f, 0.85f, 0.95f, 0), Hlsl.SmoothStep(-0.5f, 0.5f, sf2) * 0.5f); + + col1 = Hlsl.Pow(col1, 1.6f); + col2 = Hlsl.Lerp(col1.ZYXW, Hlsl.Pow(col2, 1.4f), 0.666f); + + Float4 oCol; + + if (gObjID == 0) + { + oCol = Hlsl.Lerp(col2, 0, (1.0f - Hlsl.SmoothStep(0, 0.01f, pat2)) * 0.35f); + oCol = Hlsl.Lerp(oCol, 0, (1.0f - Hlsl.SmoothStep(0, 0.01f, bord)) * 0.8f); + + if (Mod(iuv.X + iuv.Y, 2.0f) > 0.5f) oCol *= 0.8f; + + oCol = Hlsl.Lerp(oCol, 0, (1.0f - Hlsl.SmoothStep(0, 0.01f, d - 0.015f)) * 0.8f); + } + else if (gObjID == 1) + { + oCol = Hlsl.Lerp(1, 0, 1.0f - Hlsl.SmoothStep(0, 0.01f, d + 0.05f)); + Float4 fCol = Hlsl.Lerp(col1, 0, (1.0f - Hlsl.SmoothStep(0, 0.01f, pat)) * 0.35f); + fCol = Hlsl.Lerp(fCol, 0, (1.0f - Hlsl.SmoothStep(0, 0.01f, bord)) * 0.8f); + + if (Mod(iuv.X + iuv.Y, 2.0f) < 0.5f) fCol *= 0.8f; + + oCol = Hlsl.Lerp(oCol, fCol, 1 - Hlsl.SmoothStep(0, 0.01f, d + 0.08f)); + oCol = Hlsl.Lerp(oCol, 0, (1 - Hlsl.SmoothStep(0, 0.01f, Hlsl.Length(uv2) - 0.08f)) * 0.8f); + } + else + { + oCol = col1; + + float ht = 0.26f; + + if (Mod(iuv2.X + iuv2.Y + 1.0f, 2.0f) > 0.5f) + { + float tmp = pat; pat = pat2; pat2 = tmp; + + oCol = col2; + ht = 0.05f; + } + + float mark = Hlsl.Length(uv2); + float markRim = Hlsl.Max(Hlsl.Abs(mark - 0.07f), Hlsl.Abs(p.Z + ht)) - 0.003f; + + oCol = Hlsl.Lerp(oCol, 0, (1 - Hlsl.SmoothStep(0, 0.01f, markRim)) * 0.8f); + oCol = Hlsl.Lerp(oCol, 0, (1 - Hlsl.SmoothStep(0, 0.01f, mark - 0.015f)) * 0.8f); + } + + Float3 ld = l - p; + float lDist = Hlsl.Length(ld); + + ld /= lDist; + + float at = 1.0f / (1.0f + lDist * lDist * 0.125f); + float sh = SoftShadow(p, l, n, 8); + float ao = CalculateAO(p, n); + float df = Hlsl.Max(Hlsl.Dot(n, ld), 0); + float sp = Hlsl.Pow(Hlsl.Max(Hlsl.Dot(Hlsl.Reflect(r, n), ld), 0), 32); + + Float4 c = oCol * (df * sh + sp * sh + 0.5f) * at * ao; + + c = Hlsl.Sqrt(Hlsl.Max(c, 0)); + + texture[ThreadIds.XY] = c; + } + } +} diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs index 6740c385..3ef38f9f 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.g.cs @@ -14099,6 +14099,466 @@ namespace ComputeSharp [HlslIntrinsicName("rcp")] public static Double4x4 Rcp(Double4x4 x) => default; + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static float Reflect(float i, float n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float2 Reflect(Float2 i, Float2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float3 Reflect(Float3 i, Float3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float4 Reflect(Float4 i, Float4 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float1x1 Reflect(Float1x1 i, Float1x1 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float1x2 Reflect(Float1x2 i, Float1x2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float1x3 Reflect(Float1x3 i, Float1x3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float1x4 Reflect(Float1x4 i, Float1x4 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float2x1 Reflect(Float2x1 i, Float2x1 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float2x2 Reflect(Float2x2 i, Float2x2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float2x3 Reflect(Float2x3 i, Float2x3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float2x4 Reflect(Float2x4 i, Float2x4 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float3x1 Reflect(Float3x1 i, Float3x1 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float3x2 Reflect(Float3x2 i, Float3x2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float3x3 Reflect(Float3x3 i, Float3x3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float3x4 Reflect(Float3x4 i, Float3x4 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float4x1 Reflect(Float4x1 i, Float4x1 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float4x2 Reflect(Float4x2 i, Float4x2 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float4x3 Reflect(Float4x3 i, Float4x3 n) => default; + + /// + /// Returns a reflection vector using an incident ray and a surface normal. + /// + /// A floating-point, incident vector. + /// A floating-point, normal vector. + /// A floating-point, reflection vector. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("reflect")] + public static Float4x4 Reflect(Float4x4 i, Float4x4 n) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static float Refract(float i, float n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float2 Refract(Float2 i, Float2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float3 Refract(Float3 i, Float3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float4 Refract(Float4 i, Float4 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float1x1 Refract(Float1x1 i, Float1x1 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float1x2 Refract(Float1x2 i, Float1x2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float1x3 Refract(Float1x3 i, Float1x3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float1x4 Refract(Float1x4 i, Float1x4 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float2x1 Refract(Float2x1 i, Float2x1 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float2x2 Refract(Float2x2 i, Float2x2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float2x3 Refract(Float2x3 i, Float2x3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float2x4 Refract(Float2x4 i, Float2x4 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float3x1 Refract(Float3x1 i, Float3x1 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float3x2 Refract(Float3x2 i, Float3x2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float3x3 Refract(Float3x3 i, Float3x3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float3x4 Refract(Float3x4 i, Float3x4 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float4x1 Refract(Float4x1 i, Float4x1 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float4x2 Refract(Float4x2 i, Float4x2 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float4x3 Refract(Float4x3 i, Float4x3 n, float f) => default; + + /// + /// Returns a refraction vector using an entering ray, a surface normal, and a refraction index. + /// + /// A floating-point, ray direction vector. + /// A floating-point, surface normal vector. + /// A floating-point, refraction index scalar. + /// A floating-point, refraction vector. If the angle between the entering ray and the surface normal is too great for a given refraction index , the return value is 0. + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + [Pure] + [HlslIntrinsicName("refract")] + public static Float4x4 Refract(Float4x4 i, Float4x4 n, float f) => default; + /// /// Reverses the order of the bits, per component. /// diff --git a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude index 3e685080..c0ae07ed 100644 --- a/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude +++ b/src/ComputeSharp/Core/Intrinsics/Hlsl.ttinclude @@ -2092,6 +2092,79 @@ var Intrinsics = new[] IsPure = true }, new + { + Name = "Reflect", + HlslName = "reflect", + Summary = "Returns a reflection vector using an incident ray and a surface normal.", + Parameters = new[] + { + new { IsOut = false, Name = "i", Info = "A floating-point, incident vector." }, + new { IsOut = false, Name = "n", Info = "A floating-point, normal vector." } + }, + Returns = "A floating-point, reflection vector.", + Overloads = new[] + { + new { Return = "float", Params = new[] { "float", "float" } }, + new { Return = "Float2", Params = new[] { "Float2", "Float2" } }, + new { Return = "Float3", Params = new[] { "Float3", "Float3" } }, + new { Return = "Float4", Params = new[] { "Float4", "Float4" } }, + new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1" } }, + new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2" } }, + new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3" } }, + new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4" } }, + new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1" } }, + new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2" } }, + new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3" } }, + new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4" } }, + new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1" } }, + new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2" } }, + new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3" } }, + new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4" } }, + new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1" } }, + new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2" } }, + new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3" } }, + new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4" } } + }, + IsPure = true + }, + new + { + Name = "Refract", + HlslName = "refract", + Summary = "Returns a refraction vector using an entering ray, a surface normal, and a refraction index.", + Parameters = new[] + { + new { IsOut = false, Name = "i", Info = "A floating-point, ray direction vector." }, + new { IsOut = false, Name = "n", Info = "A floating-point, surface normal vector." }, + new { IsOut = false, Name = "f", Info = "A floating-point, refraction index scalar." } + }, + Returns = "A floating-point, refraction vector. If the angle between the entering ray {i} and the surface normal {n} is too great for a given refraction index {f}, the return value is 0.", + Overloads = new[] + { + new { Return = "float", Params = new[] { "float", "float", "float" } }, + new { Return = "Float2", Params = new[] { "Float2", "Float2", "float" } }, + new { Return = "Float3", Params = new[] { "Float3", "Float3", "float" } }, + new { Return = "Float4", Params = new[] { "Float4", "Float4", "float" } }, + new { Return = "Float1x1", Params = new[] { "Float1x1", "Float1x1", "float" } }, + new { Return = "Float1x2", Params = new[] { "Float1x2", "Float1x2", "float" } }, + new { Return = "Float1x3", Params = new[] { "Float1x3", "Float1x3", "float" } }, + new { Return = "Float1x4", Params = new[] { "Float1x4", "Float1x4", "float" } }, + new { Return = "Float2x1", Params = new[] { "Float2x1", "Float2x1", "float" } }, + new { Return = "Float2x2", Params = new[] { "Float2x2", "Float2x2", "float" } }, + new { Return = "Float2x3", Params = new[] { "Float2x3", "Float2x3", "float" } }, + new { Return = "Float2x4", Params = new[] { "Float2x4", "Float2x4", "float" } }, + new { Return = "Float3x1", Params = new[] { "Float3x1", "Float3x1", "float" } }, + new { Return = "Float3x2", Params = new[] { "Float3x2", "Float3x2", "float" } }, + new { Return = "Float3x3", Params = new[] { "Float3x3", "Float3x3", "float" } }, + new { Return = "Float3x4", Params = new[] { "Float3x4", "Float3x4", "float" } }, + new { Return = "Float4x1", Params = new[] { "Float4x1", "Float4x1", "float" } }, + new { Return = "Float4x2", Params = new[] { "Float4x2", "Float4x2", "float" } }, + new { Return = "Float4x3", Params = new[] { "Float4x3", "Float4x3", "float" } }, + new { Return = "Float4x4", Params = new[] { "Float4x4", "Float4x4", "float" } } + }, + IsPure = true + }, + new { Name = "ReverseBits", HlslName = "reversebits", diff --git a/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs b/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs index 55dc22ab..8b604244 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs @@ -1,6 +1,4 @@ -using System; -using System.Globalization; -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; #if !NET5_0 @@ -19,7 +17,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2), sizeof(Bool2)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool2), sizeof(Bool4)); [FieldOffset(0)] private bool x; @@ -68,6 +66,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Bool2 YY => ref *(Bool2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 XXX => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 XXY => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 XYX => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 XYY => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 YXX => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 YXY => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 YYX => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 YYY => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYYY => ref *(Bool4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -102,6 +244,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Bool2 GG => ref *(Bool2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 RRR => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 RRG => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 RGR => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 RGG => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 GRR => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 GRG => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 GGR => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool3 GGG => ref *(Bool3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGGG => ref *(Bool4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs b/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs index 1c4a4eb6..a61f2e22 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs @@ -1,6 +1,4 @@ -using System; -using System.Globalization; -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; #if !NET5_0 @@ -19,7 +17,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3), sizeof(Bool3)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Bool3), sizeof(Bool4)); [FieldOffset(0)] private bool x; @@ -268,6 +266,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Bool3 ZZZ => ref *(Bool3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXXZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXYZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXZX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXZY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XXZZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYXZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYYZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYZX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYZY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XYZZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XZXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XZXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XZXZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XZYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XZYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XZYZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XZZX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XZZY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 XZZZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXXZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXYZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXZX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXZY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YXZZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYXZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYYZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYZX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYZY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YYZZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YZXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YZXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YZXZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YZYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YZYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YZYZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YZZX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YZZY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 YZZZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZXXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZXXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZXXZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZXYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZXYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZXYZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZXZX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZXZY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZXZZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZYXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZYXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZYXZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZYYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZYYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZYYZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZYZX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZYZY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZYZZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZZXX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZZXY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZZXZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZZYX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZZYY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZZYZ => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZZZX => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZZZY => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 ZZZZ => ref *(Bool4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -499,6 +983,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Bool3 BBB => ref *(Bool3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRRB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRGB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRBR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRBG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RRBB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGRB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGGB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGBR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGBG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RGBB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RBRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RBRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RBRB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RBGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RBGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RBGB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RBBR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RBBG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 RBBB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRRB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRGB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRBR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRBG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GRBB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGRB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGGB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGBR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGBG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GGBB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GBRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GBRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GBRB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GBGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GBGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GBGB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GBBR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GBBG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 GBBB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BRRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BRRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BRRB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BRGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BRGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BRGB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BRBR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BRBG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BRBB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BGRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BGRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BGRB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BGGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BGGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BGGB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BGBR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BGBG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BGBB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BBRR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BBRG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BBRB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BBGR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BBGG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BBGB => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BBBR => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BBBG => ref *(Bool4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Bool4 BBBB => ref *(Bool4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs b/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs index 208fd259..f8329afa 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs @@ -1,6 +1,4 @@ -using System; -using System.Globalization; -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; #if !NET5_0 diff --git a/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs b/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs index 739973c1..3019afef 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs @@ -19,7 +19,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2), sizeof(Double2)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double2), sizeof(Double4)); [FieldOffset(0)] private double x; @@ -68,6 +68,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Double2 YY => ref *(Double2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 XXX => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 XXY => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 XYX => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 XYY => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 YXX => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 YXY => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 YYX => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 YYY => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYYY => ref *(Double4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -102,6 +246,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Double2 GG => ref *(Double2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 RRR => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 RRG => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 RGR => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 RGG => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 GRR => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 GRG => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 GGR => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double3 GGG => ref *(Double3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGGG => ref *(Double4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs b/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs index 00d65371..da865f3c 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs @@ -19,7 +19,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3), sizeof(Double3)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Double3), sizeof(Double4)); [FieldOffset(0)] private double x; @@ -268,6 +268,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Double3 ZZZ => ref *(Double3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXXZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXYZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXZX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXZY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XXZZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYXZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYYZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYZX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYZY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XYZZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XZXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XZXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XZXZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XZYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XZYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XZYZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XZZX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XZZY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 XZZZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXXZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXYZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXZX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXZY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YXZZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYXZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYYZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYZX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYZY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YYZZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YZXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YZXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YZXZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YZYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YZYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YZYZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YZZX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YZZY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 YZZZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZXXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZXXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZXXZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZXYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZXYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZXYZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZXZX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZXZY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZXZZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZYXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZYXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZYXZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZYYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZYYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZYYZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZYZX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZYZY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZYZZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZZXX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZZXY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZZXZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZZYX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZZYY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZZYZ => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZZZX => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZZZY => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 ZZZZ => ref *(Double4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -499,6 +985,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Double3 BBB => ref *(Double3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRRB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRGB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRBR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRBG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RRBB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGRB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGGB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGBR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGBG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RGBB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RBRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RBRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RBRB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RBGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RBGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RBGB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RBBR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RBBG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 RBBB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRRB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRGB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRBR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRBG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GRBB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGRB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGGB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGBR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGBG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GGBB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GBRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GBRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GBRB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GBGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GBGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GBGB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GBBR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GBBG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 GBBB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BRRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BRRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BRRB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BRGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BRGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BRGB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BRBR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BRBG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BRBB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BGRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BGRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BGRB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BGGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BGGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BGGB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BGBR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BGBG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BGBB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BBRR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BBRG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BBRB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BBGR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BBGG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BBGB => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BBBR => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BBBG => ref *(Double4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Double4 BBBB => ref *(Double4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs index 7a7e7372..9ed38330 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs @@ -19,7 +19,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2), sizeof(Float2)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float2), sizeof(Float4)); [FieldOffset(0)] private float x; @@ -68,6 +68,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Float2 YY => ref *(Float2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 XXX => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 XXY => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 XYX => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 XYY => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 YXX => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 YXY => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 YYX => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 YYY => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYYY => ref *(Float4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -102,6 +246,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Float2 GG => ref *(Float2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 RRR => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 RRG => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 RGR => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 RGG => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 GRR => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 GRG => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 GGR => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float3 GGG => ref *(Float3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGGG => ref *(Float4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs index d7fa7980..43ff740c 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs @@ -19,7 +19,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3), sizeof(Float3)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Float3), sizeof(Float4)); [FieldOffset(0)] private float x; @@ -268,6 +268,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Float3 ZZZ => ref *(Float3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXXZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXYZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXZX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXZY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XXZZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYXZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYYZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYZX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYZY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XYZZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XZXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XZXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XZXZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XZYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XZYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XZYZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XZZX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XZZY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 XZZZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXXZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXYZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXZX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXZY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YXZZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYXZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYYZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYZX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYZY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YYZZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YZXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YZXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YZXZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YZYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YZYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YZYZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YZZX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YZZY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 YZZZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZXXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZXXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZXXZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZXYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZXYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZXYZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZXZX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZXZY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZXZZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZYXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZYXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZYXZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZYYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZYYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZYYZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZYZX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZYZY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZYZZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZZXX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZZXY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZZXZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZZYX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZZYY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZZYZ => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZZZX => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZZZY => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 ZZZZ => ref *(Float4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -499,6 +985,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Float3 BBB => ref *(Float3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRRB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRGB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRBR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRBG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RRBB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGRB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGGB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGBR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGBG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RGBB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RBRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RBRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RBRB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RBGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RBGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RBGB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RBBR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RBBG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 RBBB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRRB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRGB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRBR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRBG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GRBB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGRB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGGB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGBR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGBG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GGBB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GBRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GBRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GBRB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GBGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GBGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GBGB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GBBR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GBBG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 GBBB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BRRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BRRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BRRB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BRGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BRGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BRGB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BRBR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BRBG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BRBB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BGRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BGRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BGRB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BGGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BGGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BGGB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BGBR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BGBG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BGBB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BBRR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BBRG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BBRB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BBGR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BBGG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BBGB => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BBBR => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BBBG => ref *(Float4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Float4 BBBB => ref *(Float4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs index b62a0ff5..b20e3213 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs @@ -19,7 +19,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2), sizeof(Int2)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int2), sizeof(Int4)); [FieldOffset(0)] private int x; @@ -68,6 +68,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Int2 YY => ref *(Int2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 XXX => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 XXY => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 XYX => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 XYY => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 YXX => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 YXY => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 YYX => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 YYY => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYYY => ref *(Int4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -102,6 +246,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Int2 GG => ref *(Int2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 RRR => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 RRG => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 RGR => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 RGG => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 GRR => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 GRG => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 GGR => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int3 GGG => ref *(Int3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGGG => ref *(Int4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs index dfcf3b7f..3d2c18ea 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs @@ -19,7 +19,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3), sizeof(Int3)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(Int3), sizeof(Int4)); [FieldOffset(0)] private int x; @@ -268,6 +268,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Int3 ZZZ => ref *(Int3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXXZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXYZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXZX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXZY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XXZZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYXZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYYZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYZX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYZY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XYZZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XZXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XZXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XZXZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XZYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XZYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XZYZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XZZX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XZZY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 XZZZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXXZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXYZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXZX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXZY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YXZZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYXZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYYZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYZX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYZY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YYZZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YZXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YZXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YZXZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YZYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YZYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YZYZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YZZX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YZZY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 YZZZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZXXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZXXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZXXZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZXYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZXYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZXYZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZXZX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZXZY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZXZZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZYXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZYXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZYXZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZYYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZYYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZYYZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZYZX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZYZY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZYZZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZZXX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZZXY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZZXZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZZYX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZZYY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZZYZ => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZZZX => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZZZY => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 ZZZZ => ref *(Int4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -499,6 +985,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly Int3 BBB => ref *(Int3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRRB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRGB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRBR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRBG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RRBB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGRB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGGB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGBR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGBG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RGBB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RBRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RBRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RBRB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RBGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RBGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RBGB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RBBR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RBBG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 RBBB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRRB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRGB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRBR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRBG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GRBB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGRB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGGB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGBR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGBG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GGBB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GBRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GBRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GBRB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GBGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GBGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GBGB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GBBR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GBBG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 GBBB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BRRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BRRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BRRB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BRGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BRGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BRGB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BRBR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BRBG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BRBB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BGRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BGRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BGRB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BGGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BGGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BGGB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BGBR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BGBG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BGBB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BBRR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BBRG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BBRB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BBGR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BBGG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BBGB => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BBBR => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BBBG => ref *(Int4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly Int4 BBBB => ref *(Int4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs index a14245f5..301b1375 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs @@ -19,7 +19,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2), sizeof(UInt2)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt2), sizeof(UInt4)); [FieldOffset(0)] private uint x; @@ -68,6 +68,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly UInt2 YY => ref *(UInt2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 XXX => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 XXY => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 XYX => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 XYY => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 YXX => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 YXY => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 YYX => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 YYY => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYYY => ref *(UInt4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -102,6 +246,150 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly UInt2 GG => ref *(UInt2*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 RRR => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 RRG => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 RGR => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 RGG => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 GRR => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 GRG => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 GGR => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt3 GGG => ref *(UInt3*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGGG => ref *(UInt4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs index 034a57f4..6c6f8418 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs @@ -19,7 +19,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3), sizeof(UInt3)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UInt3), sizeof(UInt4)); [FieldOffset(0)] private uint x; @@ -268,6 +268,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly UInt3 ZZZ => ref *(UInt3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXXZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXYZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXZX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXZY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XXZZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYXZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYYZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYZX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYZY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XYZZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XZXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XZXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XZXZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XZYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XZYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XZYZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XZZX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XZZY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 XZZZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXXZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXYZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXZX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXZY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YXZZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYXZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYYZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYZX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYZY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YYZZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YZXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YZXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YZXZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YZYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YZYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YZYZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YZZX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YZZY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 YZZZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZXXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZXXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZXXZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZXYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZXYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZXYZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZXZX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZXZY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZXZZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZYXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZYXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZYXZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZYYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZYYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZYYZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZYZX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZYZY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZYZZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZZXX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZZXY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZZXZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZZYX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZZYY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZZYZ => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZZZX => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZZZY => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 ZZZZ => ref *(UInt4*)UndefinedData; + /// /// Gets a reference to the value representing the R component. /// @@ -499,6 +985,492 @@ namespace ComputeSharp /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. public readonly ref readonly UInt3 BBB => ref *(UInt3*)UndefinedData; + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRRB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRGB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRBR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRBG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RRBB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGRB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGGB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGBR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGBG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RGBB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RBRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RBRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RBRB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RBGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RBGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RBGB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RBBR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RBBG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 RBBB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRRB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRGB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRBR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRBG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GRBB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGRB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGGB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGBR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGBG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GGBB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GBRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GBRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GBRB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GBGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GBGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GBGB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GBBR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GBBG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 GBBB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BRRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BRRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BRRB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BRGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BRGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BRGB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BRBR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BRBG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BRBB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BGRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BGRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BGRB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BGGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BGGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BGGB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BGBR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BGBG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BGBB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BBRR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BBRG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BBRB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BBGR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BBGG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BBGB => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BBBR => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BBBG => ref *(UInt4*)UndefinedData; + + /// + /// Gets a readonly reference to the value with the components , , , . + /// + /// This method is an intrinsic and can only be used within a shader on the GPU. Using it on the CPU is undefined behavior. + public readonly ref readonly UInt4 BBBB => ref *(UInt4*)UndefinedData; + /// public override readonly string ToString() { diff --git a/src/ComputeSharp/Core/Primitives/VectorType.ttinclude b/src/ComputeSharp/Core/Primitives/VectorType.ttinclude index 6ed15886..7cc37928 100644 --- a/src/ComputeSharp/Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp/Core/Primitives/VectorType.ttinclude @@ -6,57 +6,42 @@ <#@ import namespace="System.Collections.Generic" #> <#@ output extension=".g.cs"#> <# -IEnumerable EnumeratePropertyNames(string source) +IEnumerable EnumeratePropertyNames(string characters) { - // Creates a comparison for a string based on indices of each character in a key - static int CompareBy(string text, string key) + static IEnumerable EnumeratePropertyNames( + string characters, + StringBuilder builder, + int remainingCount) { - return text.Select(c => key.IndexOf(c)).Aggregate(0, (r, i) => (r << 4) + i); - } - - // Returns all combinations from an input string - static IEnumerable Combinations(string text) - { - if (text.Length > 1) + foreach (char c in characters) { - for (int i = text.Length - 1; i >= 0; i--) + builder.Append(c); + + if (remainingCount == 1) { - var characters = text.ToList(); - - characters.RemoveAt(i); - - string substring = string.Join("", characters); - - foreach (var combination in Combinations(substring)) + yield return builder.ToString(); + } + else + { + foreach (string name in EnumeratePropertyNames(characters, builder, remainingCount - 1)) { - yield return combination; + yield return name; } } - } - yield return text; + builder.Remove(builder.Length - 1, 1); + } } - // Returns all permutations (with repetition) of a given string - static IEnumerable Permutations(string text) + StringBuilder builder = new StringBuilder(4); + + for (int length = 1; length <= 4; length++) { - static IEnumerable EnumeratePermutations(string text, int length) + foreach (string name in EnumeratePropertyNames(characters, builder, length)) { - if (length == 1) return text.Select(c => c.ToString()); - - return EnumeratePermutations(text, length - 1).SelectMany(s => text, (s1, s2) => s1 + s2); + yield return name; } - - return EnumeratePermutations(text, text.Length); } - - return - Combinations(source) - .Distinct() - .SelectMany(Permutations) - .OrderBy(s => s.Length) - .ThenBy(s => CompareBy(s, source)) - .Distinct(); } // Generates all vector access properties for a specified type @@ -66,9 +51,13 @@ void GenerateVectorProperties(string typeName, int elementSize) string hlslElementTypeName = elementTypeName.ToLower(); int i = int.Parse(Regex.Match(typeName, @"\d+$").Value); string formattable = elementTypeName == "Bool" ? "" : " : IFormattable"; + + if (elementTypeName != "Bool") + { + WriteLine("using System;"); + WriteLine("using System.Globalization;"); + } #> -using System; -using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; @@ -88,7 +77,7 @@ namespace ComputeSharp /// /// A private buffer to which the undefined properties will point to. /// - private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(<#=typeName#>), sizeof(<#=typeName#>)); + private static readonly void* UndefinedData = (void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(<#=typeName#>), sizeof(<#=elementTypeName#>4)); <# WriteLine(""); PushIndent(" "); @@ -121,7 +110,6 @@ namespace ComputeSharp from source in new[] { "XYZW", "RGBA" } let range = source.Substring(0, i) from name in EnumeratePropertyNames(range) - where name.Length <= i select name) { WriteLine(""); diff --git a/tests/ComputeSharp.Tests/Assets/ExtrudedTruchetPattern.png b/tests/ComputeSharp.Tests/Assets/ExtrudedTruchetPattern.png new file mode 100644 index 00000000..05135884 Binary files /dev/null and b/tests/ComputeSharp.Tests/Assets/ExtrudedTruchetPattern.png differ diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index 364ecaa2..577e1d76 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -28,6 +28,7 @@ + @@ -43,6 +44,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest diff --git a/tests/ComputeSharp.Tests/ShadersTests.cs b/tests/ComputeSharp.Tests/ShadersTests.cs index 45478d64..1b782262 100644 --- a/tests/ComputeSharp.Tests/ShadersTests.cs +++ b/tests/ComputeSharp.Tests/ShadersTests.cs @@ -58,6 +58,13 @@ namespace ComputeSharp.Tests RunAndCompareShader(device, static texture => new ProteanClouds(texture, 0), 0.0000004f); } + [CombinatorialTestMethod] + [AllDevices] + public void ExtrudedTruchetPattern(Device device) + { + RunAndCompareShader(device, static texture => new ExtrudedTruchetPattern(texture, 0), 0.00011f); + } + /// /// Executes a given test for a specified shader. ///