Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b286116
[Port] [6000.3] Fix material debug not working
svc-reach-platform-support Feb 24, 2026
6a83c8d
[Port] [6000.3] Added a dummy field to UnityTexture3D to work around …
svc-reach-platform-support Feb 24, 2026
88c191c
[Port] [6000.3] [UUM-134981] Make sure to declare output arrays with …
svc-reach-platform-support Feb 24, 2026
756242c
[Port] [6000.3] [NVUnityPlugin] DLSS 4.5: upgrade SDK to v310.5.0
svc-reach-platform-support Feb 25, 2026
dba25a1
[Port] [6000.3] [Icons] Correct handling of IconAttribute in the Anno…
svc-reach-platform-support Feb 25, 2026
c6f77cb
[Port] [6000.3] [URP] Implement Lazy initialisation for PlatformAutoD…
svc-reach-platform-support Feb 25, 2026
4c138a2
[Port] [6000.3] RenderGraph - Add new operator == for the TextureHand…
svc-reach-platform-support Feb 26, 2026
c8c9fec
[Port] [6000.3] Fixed redefinition causing warning in UITK shader tem…
svc-reach-platform-support Feb 26, 2026
6ea2ff8
[Port] [6000.3] Fix UUM-134638 UGUI Shaders sample Fancy Loading Subg…
svc-reach-platform-support Feb 27, 2026
aeb0ba7
[Port] [6000.3] [UUM-132565][UUM-132573] [6000.5][2D] Light Batching …
kennytann Mar 2, 2026
2f9fd64
[Port] [6000.3] Fix shader miscompilation of Shader Graph's Dither no…
svc-reach-platform-support Mar 2, 2026
9946d5c
[Port][6000.3][UUM-122106] Add "is HDR" option to texture shader prop…
april-roszkowski Mar 2, 2026
c3f9e87
[Port] [6000.3] [UUM-133826] Initialize uv1 for Canvas shaders when n…
svc-reach-platform-support Mar 2, 2026
c1b22d9
[Port] [6000.3] ENABLE_XR_MODULE -> ENABLE_VR_MODULE
svc-reach-platform-support Mar 2, 2026
48a4067
[Port] [6000.3] Initialise VolumeManager BaseComponentTypes from Defa…
svc-reach-platform-support Mar 3, 2026
42b673f
[Port] [6000.3] UUM-133557 Color texture is read twice in custom pass
svc-reach-platform-support Mar 5, 2026
297cd57
[Port] [6000.3] [VFX] Fix Sort.compute crash caused by OOB buffer access
svc-reach-platform-support Mar 6, 2026
90cb30a
[Port] [6000.3] Correct cases where we could fail to update HDRP Volu…
svc-reach-platform-support Mar 6, 2026
9fe6a77
[6.3][Yamato] URP's ReassignGameObjectMaterials_Succeeds_WhenMaterial…
alex-vazquez-unity3d Mar 9, 2026
920df9d
[Port][6000.3][UUM-133930] Fix Shader Graph icon badges overflowing t…
april-roszkowski Mar 10, 2026
c0be1c9
[Backport 6000.3] Fixed generated code for preview nodes for UI Toolk…
alexandret-unity Mar 11, 2026
da54ce9
[Backport 6000.3] Correctly support UITKPreview without affecting oth…
ncerone-unity Mar 11, 2026
45c9a97
[Backport 6000.3] Fix gamma issue of Sample Element Texture node for …
ncerone-unity Mar 12, 2026
e82b08b
[Port] [6000.3] [SG] Fixes for Node Preview Preferences issues
svc-reach-platform-support Mar 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ internal void SetVolumeProfile(VolumeProfile p)

static Dictionary<Type, VolumeParameterDrawer> s_ParameterDrawers;
SupportedOnRenderPipelineAttribute m_SupportedOnRenderPipelineAttribute;
Type[] m_LegacyPipelineTypes;

static VolumeComponentEditor()
{
Expand Down Expand Up @@ -274,11 +273,6 @@ internal void Init()

var volumeComponentType = volumeComponent.GetType();
m_SupportedOnRenderPipelineAttribute = volumeComponentType.GetCustomAttribute<SupportedOnRenderPipelineAttribute>();

#pragma warning disable CS0618
var supportedOn = volumeComponentType.GetCustomAttribute<VolumeComponentMenuForRenderPipeline>();
m_LegacyPipelineTypes = supportedOn != null ? supportedOn.pipelineTypes : Array.Empty<Type>();
#pragma warning restore CS0618
}

internal void DetermineVisibility(Type renderPipelineAssetType, Type renderPipelineType)
Expand All @@ -295,12 +289,6 @@ internal void DetermineVisibility(Type renderPipelineAssetType, Type renderPipel
return;
}

if (renderPipelineType != null && m_LegacyPipelineTypes.Length > 0)
{
visible = m_LegacyPipelineTypes.Contains(renderPipelineType);
return;
}

visible = true;
}

Expand Down Expand Up @@ -451,12 +439,12 @@ public virtual GUIContent GetDisplayTitle()
var displayInfo = volumeComponentType.GetCustomAttribute<DisplayInfoAttribute>();
if (displayInfo != null && !string.IsNullOrWhiteSpace(displayInfo.name))
return EditorGUIUtility.TrTextContent(displayInfo.name, string.Empty);

#pragma warning disable CS0618
if (!string.IsNullOrWhiteSpace(volumeComponent.displayName))
return EditorGUIUtility.TrTextContent(volumeComponent.displayName, string.Empty);
#pragma warning restore CS0618

return EditorGUIUtility.TrTextContent(ObjectNames.NicifyVariableName(volumeComponentType.Name) , string.Empty);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,19 @@ static VolumeComponent GetVolumeComponentOfTypeOrDefault(this VolumeProfile prof
static List<Type> GetTypesMissingFromDefaultProfile(VolumeProfile profile)
{
List<Type> missingTypes = new List<Type>();
var volumeComponentTypes = VolumeManager.instance.baseComponentTypeArray;

var volumeComponentTypes = VolumeManager.instance.isInitialized ?
VolumeManager.instance.baseComponentTypeArray : VolumeManager.instance.LoadBaseTypesByReflection(GraphicsSettings.currentRenderPipelineAssetType);
foreach (var type in volumeComponentTypes)
{
if (profile.components.Find(c => c.GetType() == type) == null)
{
if (type.IsDefined(typeof(ObsoleteAttribute), false) ||
type.IsDefined(typeof(HideInInspector), false))
if (type.IsDefined(typeof(ObsoleteAttribute), false))
continue;

missingTypes.Add(type);
}
}

return missingTypes;
}

Expand All @@ -163,13 +163,14 @@ static List<Type> GetTypesMissingFromDefaultProfile(VolumeProfile profile)
/// <param name="profile">VolumeProfile to use.</param>
/// <param name="defaultValueSource">An optional VolumeProfile asset containing default values to use for
/// any components that are added to <see cref="profile"/>.</param>
public static void EnsureAllOverridesForDefaultProfile(VolumeProfile profile, VolumeProfile defaultValueSource = null)
public static void EnsureAllOverridesForDefaultProfile(VolumeProfile profile, VolumeProfile defaultValueSource = null) => TryEnsureAllOverridesForDefaultProfile(profile, defaultValueSource);
internal static bool TryEnsureAllOverridesForDefaultProfile(VolumeProfile profile, VolumeProfile defaultValueSource = null)
{
// It's possible that the volume profile is assigned to the default asset inside the HDRP package. In
// this case it cannot be modified. User is expected to use HDRP Wizard "Fix" to create a local profile.
var path = AssetDatabase.GetAssetPath(profile);
if (CoreEditorUtils.IsAssetInReadOnlyPackage(path))
return;
return false;

bool changed = false;
int numComponentsBefore = profile.components.Count;
Expand Down Expand Up @@ -241,6 +242,8 @@ public static void EnsureAllOverridesForDefaultProfile(VolumeProfile profile, Vo
VolumeManager.instance.OnVolumeProfileChanged(profile);
EditorUtility.SetDirty(profile);
}

return changed;
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal enum TextureUVOriginSelection
/// </summary>
[DebuggerDisplay("Texture ({handle.index})")]
[MovedFrom(true, "UnityEngine.Experimental.Rendering.RenderGraphModule", "UnityEngine.Rendering.RenderGraphModule")]
public readonly struct TextureHandle
public readonly struct TextureHandle : IEquatable<TextureHandle>
{
private static TextureHandle s_NullHandle = new TextureHandle();

Expand Down Expand Up @@ -151,6 +151,52 @@ internal TextureHandle(int handle, bool shared = false, bool builtin = false)
/// <returns>Resource as a RTHandle.</returns>
public static implicit operator RTHandle(TextureHandle texture) => texture.IsValid() ? RenderGraphResourceRegistry.current.GetTexture(texture) : null;

/// <summary>
/// Determines whether this instance and another specified <see cref="TextureHandle"/> object have the same underlying resource handle.
/// </summary>
/// <param name="other">The texture handle to compare with the current instance.</param>
/// <returns>
/// True if both texture handles reference the same underlying resource; otherwise, false.
/// </returns>
public bool Equals(TextureHandle other) => handle.Equals(other.handle);

/// <summary>
/// Determines whether the specified object is equal to the current <see cref="TextureHandle"/>.
/// </summary>
/// <param name="obj">The object to compare with the current instance.</param>
/// <returns>
/// True if the specified object is a <see cref="TextureHandle"/> and references the same underlying resource; otherwise, false.
/// </returns>
public override bool Equals(object obj) => obj is TextureHandle other && Equals(other);

/// <summary>
/// Returns the hash code for this <see cref="TextureHandle"/>.
/// </summary>
/// <returns>
/// The hash code of the current <see cref="TextureHandle"/>.
/// </returns>
public override int GetHashCode() => handle.GetHashCode();

/// <summary>
/// Determines whether two <see cref="TextureHandle"/> instances reference the same underlying resource.
/// </summary>
/// <param name="lhs">The first texture handle to compare.</param>
/// <param name="rhs">The second texture handle to compare.</param>
/// <returns>
/// True if both handles reference the same underlying resource; otherwise, false.
/// </returns>
public static bool operator ==(TextureHandle lhs, TextureHandle rhs) => lhs.handle.Equals(rhs.handle);

/// <summary>
/// Determines whether two <see cref="TextureHandle"/> instances reference different underlying resources.
/// </summary>
/// <param name="lhs">The first texture handle to compare.</param>
/// <param name="rhs">The second texture handle to compare.</param>
/// <returns>
/// True if the handles reference different underlying resources; otherwise, false.
/// </returns>
public static bool operator !=(TextureHandle lhs, TextureHandle rhs) => !lhs.handle.Equals(rhs.handle);

/// <summary>
/// Return true if the handle is valid.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,21 @@ public bool Equals(ResourceHandle hdl)
{
return hdl.m_Value == this.m_Value && hdl.m_Version == this.m_Version && hdl.type == this.type;
}

public static bool operator ==(ResourceHandle lhs, ResourceHandle rhs) => lhs.Equals(rhs);

public static bool operator !=(ResourceHandle lhs, ResourceHandle rhs) => !lhs.Equals(rhs);

public override bool Equals(object obj) => obj is ResourceHandle other && Equals(other);

public override int GetHashCode()
{
var hashCode = HashFNV1A32.Create();
hashCode.Append(m_Value);
hashCode.Append(m_Version);
hashCode.Append(m_Type);
return hashCode.value;
}
}

class IRenderGraphResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public VolumeComponentMenu(string menu)
/// This attribute allows you to add commands to the <b>Add Override</b> popup menu on Volumes,
/// while also specifying the render pipeline(s) for which the command will be supported.
/// </summary>
[Obsolete(@"VolumeComponentMenuForRenderPipelineAttribute is deprecated. Use VolumeComponentMenu with SupportedOnRenderPipeline instead. #from(2023.1)")]
[Obsolete(@"VolumeComponentMenuForRenderPipelineAttribute is deprecated. Use VolumeComponentMenu with SupportedOnRenderPipeline instead. #from(2023.1)", true)]
public class VolumeComponentMenuForRenderPipeline : VolumeComponentMenu
{
/// <summary>
Expand Down Expand Up @@ -126,7 +126,7 @@ public sealed class VolumeComponentDeprecated : Attribute
/// <para>
/// In the example above, the custom component `ExampleComponent` extends `VolumeComponent` and defines a parameter
/// (`intensity`) that can be manipulated within the volume framework. The `ClampedFloatParameter` is a type of
/// <see cref="VolumeParameter{T}"/> that ensures the value remains within a specified range.
/// <see cref="VolumeParameter{T}"/> that ensures the value remains within a specified range.
/// </para>
/// </example>
[Serializable]
Expand Down Expand Up @@ -164,7 +164,7 @@ public Indent(int relativeAmount = 1)
/// The backing storage of <see cref="parameters"/>. Use this for performance-critical work.
/// </summary>
internal VolumeParameter[] parameterList;

ReadOnlyCollection<VolumeParameter> m_ParameterReadOnlyCollection;

/// <summary>
Expand Down Expand Up @@ -355,7 +355,7 @@ public bool AnyPropertiesIsOverridden()
{
for (int i = 0; i < parameterList.Length; ++i)
{
if (parameterList[i].overrideState)
if (parameterList[i].overrideState)
return true;
}
return false;
Expand Down
Loading
Loading