SPIRV-Cross renames members matching GLSL builtins, so the source names change. Resolver and JSON writer accessors follow the members; the wire (positional MessagePack, JSON keys) is untouched in this commit. The committed GLSL is stale until its regeneration commit, so CommittedGlslEqualsLowering fails here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1 KiB
C#
27 lines
1 KiB
C#
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
|
|
// the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
//
|
|
// The result type of math.phacelle (math.Phacelle.cs), Rune Skovbo Johansen's Phacelle noise
|
|
// (Copyright (c) 2025, MPL-2.0; see THIRD-PARTY-NOTICES.md).
|
|
|
|
namespace CultMath;
|
|
|
|
/// <summary>
|
|
/// The value-and-gradient result of <see cref="math.phacelle(float3, float3, float, float)"/>
|
|
/// (invariant 8's struct return shape). Both fields use the <c>float4(gradient.xyz, value.w)</c>
|
|
/// layout of a bare value-and-gradient return.
|
|
/// </summary>
|
|
public struct CultPhasor
|
|
{
|
|
/// <summary>(∇cos, cos): the normalized cosine wave and its gradient.</summary>
|
|
public float4 cosine;
|
|
|
|
/// <summary>(∇sin, sin): the normalized sine wave and its gradient.</summary>
|
|
public float4 sine;
|
|
|
|
public CultPhasor(float4 cosine, float4 sine)
|
|
{
|
|
this.cosine = cosine;
|
|
this.sine = sine;
|
|
}
|
|
}
|