Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5aa8472
[6000.6] [GSDET-1288] Use the published Graphics Test Framework in SR…
ludeum Oct 30, 2026
ce92bd8
[Port] [6000.6] [UnifiedRayTracing] Fix quadratic mass removal of ray…
svc-reach-platform-support Nov 2, 2026
2521c65
[Port] [6000.6] [UUM-147726] Fix render requests to cubemaps renderin…
RoseHirigoyen Nov 3, 2026
fee0205
[Port] [6000.6] [UUM-159093] Fix 2D sprites and UI not rendering with…
svc-reach-platform-support Nov 3, 2026
d59b5fa
[Port] [6000.6] Fix incorrect offset of probe occlusion in APV when L…
svc-reach-platform-support Nov 3, 2026
6e61d3e
[Port] [6000.6] [UUM-159072] Fix DebugUI UIntField clamping losing pr…
svc-reach-platform-support Nov 4, 2026
969306f
[Port] [6000.6] [UUM-158025] [URP] Only log unusable post-processing …
svc-reach-platform-support Nov 4, 2026
fed62fc
[Port] [6000.6] [UUM-146356] [UUM-154016] [UUM-159132] [URP] Fix Forw…
Nov 4, 2026
6893763
[Port] [6000.6] [UUM-147726] Make the cubemap render request test use…
RoseHirigoyen Nov 4, 2026
e5d1dd0
[Port] [6000.6] Fix HDRP XR depth copy scale when RTHandle allocation…
svc-reach-platform-support Nov 4, 2026
fe58816
[Port] [6000.6] DOCG-9337 Fix typo in Screen Space Lens Flare
svc-reach-platform-support Nov 4, 2026
61cfae5
[Port] [6000.6] [UUM-158881] [VFX] Fix Custom HLSL function body pars…
robert-badea-unity Nov 6, 2026
4dd3023
[Port] [6000.6] [UUM-160178] [GI] Fix out-of-bounds access in probe o…
svc-reach-platform-support Nov 6, 2026
ad65edf
[Port] [6000.6] Fix filtered Scene View picking ignoring BatchRendere…
svc-reach-platform-support Nov 9, 2026
9286a1a
[Port] [6000.6] [UUM-147992][UUM-158701][7000.0] Fix sprite rendering…
svc-reach-platform-support Nov 9, 2026
6497306
[Port] [6000.6] VolumeProfileEditor - When editors are empty re-init …
svc-reach-platform-support Nov 10, 2026
fbcd599
[Port] [6000.6] [XR] Fix unnecessary MSAA on eye textures when camera…
NetteVI Nov 11, 2026
143ba78
[Port] [6000.6] [URP] [GSDET-1480] Make the 301 shadow-caster culling…
svc-reach-platform-support Nov 11, 2026
dcfce55
[Port] [6000.6] [UUM-156479] Terrain: write rendering layers from the…
geunheepark-unity Nov 11, 2026
416cc67
[Port] [6000.6] [UUM-159309] [APV] Fix NullReferenceException when re…
svc-reach-platform-support Nov 11, 2026
875a64f
[Port] [6000.6] Add alpha upscaling support for color-only upscalers
svc-reach-platform-support Nov 11, 2026
971212a
[Port] [6000.6] Forward+ point lights are cut off in tile blocks when…
svc-reach-platform-support Nov 17, 2026
b56b1b1
[Port] [6000.6] [OD][GRD] Component Activation/Deactivation tracked b…
svc-reach-platform-support Nov 17, 2026
b0ded64
[Port] [6000.6] [UUM-157382] [UUM-155586] Fix VFX parameter and categ…
svc-reach-platform-support Nov 17, 2026
21ef169
[Port] [6000.6] Graphics/URP - [UUM-155833] - Fix multi-display suppo…
svc-reach-platform-support Nov 18, 2026
ab16b4f
[Port] [6000.6] APV: do not start a nested Baking Set switch from Unl…
svc-reach-platform-support Nov 19, 2026
6ccee15
[Port] [6000.6] [VFX][UUM-160418] Ensure VFX assets are properly incl…
svc-reach-platform-support Nov 21, 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 @@ -683,6 +683,8 @@ static void ExtractBakingCells()
foreach (var data in loadedSceneDataList)
{
var cells = m_BakingSet.GetSceneCellIndexList(data.sceneGUID);
if (cells == null)
continue;

var numberOfCells = cells.Count;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@ public sealed class VolumeProfileEditor : Editor
void OnEnable()
{
componentList = new VolumeComponentListEditor(this);
if (VolumeManager.instance.isInitialized)
Init();
}

void Init()
{
var volumeProfile = target as VolumeProfile;

if (volumeProfile == VolumeManager.instance.globalDefaultProfile)
{
componentList.SetIsGlobalDefaultVolumeProfile(true);
VolumeProfileUtils.EnsureAllOverridesForDefaultProfile(volumeProfile);
}

componentList.Init(volumeProfile, serializedObject);
}

void OnDisable()
Expand All @@ -43,15 +28,32 @@ void OnDisable()
/// <inheritdoc/>
public override void OnInspectorGUI()
{
if (componentList == null || componentList.asset == null)
if (!VolumeManager.instance.isInitialized)
{
EditorGUILayout.HelpBox("Volume Profiles require an active Scriptable Render Pipeline, but nothing has been rendered. Make sure Scene or Game View is in focus and no debug modes are active.", MessageType.Warning);
return; // Defer initialization until VolumeManager is initialized
}

if (componentList == null)
componentList = new VolumeComponentListEditor(this);

var volumeProfile = target as VolumeProfile;

bool isDefaultVolumeProfile = volumeProfile == VolumeManager.instance.globalDefaultProfile;


bool initNeeded = componentList.asset == null ||
(isDefaultVolumeProfile && (componentList.asset.components == null || componentList.asset.components.Count == 0));

if (initNeeded)
{
if (!VolumeManager.instance.isInitialized)
if (isDefaultVolumeProfile)
{
EditorGUILayout.HelpBox("Volume Profiles require an active Scriptable Render Pipeline, but nothing has been rendered. Make sure Scene or Game View is in focus and no debug modes are active.", MessageType.Warning);
return; // Defer initialization until VolumeManager is initialized
componentList.SetIsGlobalDefaultVolumeProfile(true);
VolumeProfileUtils.EnsureAllOverridesForDefaultProfile(volumeProfile);
}

Init();
componentList.Init(volumeProfile, serializedObject);
}

serializedObject.Update();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ public class IntField : Field<int>
/// <returns>Validated value.</returns>
public override int ValidateValue(int value)
{
if (min != null) value = Mathf.Max(value, min());
if (max != null) value = Mathf.Min(value, max());
if (min != null) value = Math.Max(value, min());
if (max != null) value = Math.Min(value, max());
return value;
}

Expand Down Expand Up @@ -386,8 +386,8 @@ public class UIntField : Field<uint>
/// <returns>Validated value.</returns>
public override uint ValidateValue(uint value)
{
if (min != null) value = (uint)Mathf.Max(value, min());
if (max != null) value = (uint)Mathf.Min(value, max());
if (min != null) value = Math.Max(value, min());
if (max != null) value = Math.Min(value, max());
return value;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,19 @@ internal void RegisterBakingSet(ProbeVolumePerSceneData data)
internal void UnloadBakingSet()
{
// Need to make sure everything is unloaded before killing the baking set ref (we need it to unload cell CPU data).
#if UNITY_EDITOR
m_IsUnloadingBakingSet = true;
try
{
PerformPendingOperations();
}
finally
{
m_IsUnloadingBakingSet = false;
}
#else
PerformPendingOperations();
#endif

if (m_CurrentBakingSet != null)
m_CurrentBakingSet.Cleanup();
Expand Down Expand Up @@ -1643,13 +1655,14 @@ public void PerformPendingOperations()

#if UNITY_EDITOR
Scene m_TrackedActiveScene;
bool m_IsUnloadingBakingSet;

// Keeps the current baking set in sync with the active scene. Skipped while a bake is running, since the
// current set is owned by EnsureCurrentBakingSet for its duration; the mismatch is picked up again once the
// bake ends, on whichever call to PerformPendingOperations comes first.
internal void TrackActiveScene()
{
if (Application.isPlaying || UnityEditor.Lightmapping.isRunning || isBakingAdaptiveProbeVolumes)
if (m_IsUnloadingBakingSet || Application.isPlaying || UnityEditor.Lightmapping.isRunning || isBakingAdaptiveProbeVolumes)
return;

var activeScene = SceneManager.GetActiveScene();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,10 @@ internal void EnsurePerSceneData(Scene scene, string sceneGUID)
{
GameObject go = new GameObject("ProbeVolumePerSceneData");
go.hideFlags |= HideFlags.HideInHierarchy;
var perSceneData = go.AddComponent<ProbeVolumePerSceneData>();

// Move before adding the component so OnEnable picks up the GUID of the target scene
SceneManager.MoveGameObjectToScene(go, scene);
go.AddComponent<ProbeVolumePerSceneData>();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public ProbeVolumeScratchBufferPool(ProbeVolumeBakingSet bakingSet, ProbeVolumeS
m_ValidityLayerCount = bakingSet.bakedMaskCount;
m_SkyOcclusionSize = bakingSet.sharedSkyOcclusionL0L1ChunkSize;
m_SkyShadingDirectionSize = bakingSet.sharedSkyShadingDirectionIndicesChunkSize;
m_L2Size = bakingSet.L2TextureChunkSize;
m_L2Size = shBands == ProbeVolumeSHBands.SphericalHarmonicsL2 ? bakingSet.L2TextureChunkSize : 0;
m_ProbeOcclusionSize = bakingSet.ProbeOcclusionChunkSize;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace UnityEngine.PathTracing.Core
{
// The type parameter T is only used as a tag, preventing different kinds of handles from being mixed together.
internal readonly struct Handle<T>
internal readonly struct Handle<T> : IEquatable<Handle<T>>
{
public readonly UInt64 Value;

Expand All @@ -27,6 +27,7 @@ internal int ToInt()
}

// Value type semantics
public bool Equals(Handle<T> other) => other.Value == Value;
public override int GetHashCode() => Value.GetHashCode();
public override bool Equals(object obj) => obj is Handle<T> other && other.Value == Value;
public override string ToString() => $"Handle<{typeof(T).Name}>({Value})";
Expand All @@ -50,7 +51,7 @@ public Handle<T> Add()

public void Remove(Handle<T> handle)
{
Debug.Assert(!_freeHandles.Contains(handle));
Debug.Assert(handle.Value < _nextHandleIndex, "Removed handle was never allocated by this set.");
_freeHandles.Push(handle);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ uint g_ProbeCount;
[numthreads(64,1,1)]
void MapIndices(uint3 id : SV_DispatchThreadID)
{
if (id.x >= g_MaxLightsPerProbe * g_ProbeCount)
if (id.x >= g_ProbeCount)
return;

for (uint i = 0; i < g_MaxLightsPerProbe; i++)
Expand Down
Loading
Loading