Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
2241eb5
[6000.7] [GSDET-1288] Use the published Graphics Test Framework in SR…
ludeum Oct 30, 2026
6b78002
[Port] [6000.7] [UUM-155328] [URP] Fix forward-only materials losing …
svc-reach-platform-support Oct 30, 2026
681f947
[Port] [6000.7] [UUM-159093] Fix 2D sprites and UI not rendering with…
svc-reach-platform-support Oct 30, 2026
fa28991
[Port] [6000.7] [UUM-157356] [URP] Fix Shadow Layers multi-edit only …
svc-reach-platform-support Oct 30, 2026
f936c7e
[Port] [6000.7] [UUM-147726] Fix render requests to cubemaps renderin…
RoseHirigoyen Oct 30, 2026
a8bf301
[Port] [6000.7] Render Pipeline Converter: Animation Clip converter r…
svc-reach-platform-support Oct 30, 2026
d48543b
[Port] [6000.7] [UUM-151921] [SurfaceCache] Defer environment cubemap…
svc-reach-platform-support Oct 30, 2026
dc4d868
[Port] [6000.7] Bugfix: Account for exposure multiplier in Surface Ca…
svc-reach-platform-support Nov 2, 2026
81bfdb6
[Templates] Remove commit ids from changelogs
simone-livieri Nov 2, 2026
bef3340
[Port] [6000.7] Fix incorrect offset of probe occlusion in APV when L…
svc-reach-platform-support Nov 2, 2026
cc1afaf
[Port] [6000.7] [UUM-159132] [URP] Fix CPU light clustering for degen…
svc-reach-platform-support Nov 2, 2026
34d36a4
[Port] [6000.7] [DOCG-9272] Custom 2D light and shadow material docs
marta-malberti Nov 3, 2026
a8de14b
[Port] [6000.7] [UUM-153768] [URP] [HDRP] Run the material upgrade du…
svc-reach-platform-support Nov 3, 2026
f404e9f
[Port] [6000.7] [MacOS] Non finite values in unified baker (UUM-146654)
svc-reach-platform-support Nov 3, 2026
00f4b39
[Port] [6000.7] [UUM-159594] Limit the compute ray tracing BVH to Mes…
svc-reach-platform-support Nov 3, 2026
71a5c2d
[Port] [6000.7] Render Pipeline Converter: Scan misses assets created…
svc-reach-platform-support Nov 3, 2026
060664d
[Port] [6000.7] [UUM-158025] [URP] Only log unusable post-processing …
svc-reach-platform-support Nov 4, 2026
f7b5688
[Port] [6000.7] Fixed exposure clamp and regression fix
svc-reach-platform-support Nov 4, 2026
51315e8
[Port] [6000.7] [UUM-159743] Surface Cache: set uint uniforms with Se…
svc-reach-platform-support Nov 4, 2026
c1b915d
[Port] [6000.7] [UUM-159072] Fix DebugUI UIntField clamping losing pr…
svc-reach-platform-support Nov 5, 2026
96effe3
[Port] [6000.7] Add "Always Refresh info message" in Surface Cache Vo…
svc-reach-platform-support Nov 5, 2026
854ebc5
[Port] [6000.7] [UUM-147726] Make the cubemap render request test use…
RoseHirigoyen Nov 5, 2026
c3a209e
[Port] [6000.7] [UUM-139389] Untangle texture creation status from up…
RoseHirigoyen Nov 5, 2026
6a74288
[Port] [6000.7] DOCG-9337 Fix typo in Screen Space Lens Flare
svc-reach-platform-support Nov 5, 2026
dd5756b
[6000.7][HDRP Sample] Add missing IET framework dependencies
simone-livieri Nov 5, 2026
7e69267
[Port] [6000.7] Render Pipeline Convertor - Failing to convert certai…
svc-reach-platform-support Nov 5, 2026
c0e1e2f
[Port] [6000.7] Fix filtered Scene View picking ignoring BatchRendere…
svc-reach-platform-support Nov 6, 2026
5b897ea
[Port] [6000.7] Bugfix: Small scale jitter broken in QRNG_KRONECKER
svc-reach-platform-support Nov 6, 2026
b29515d
[Port] [6000.7] [UUM-156468] [URP] Fix DBuffer decal error when an em…
svc-reach-platform-support Nov 6, 2026
f852984
[Port] [6000.7] Objects using URP Lit materials are not rendered in t…
svc-reach-platform-support Nov 6, 2026
e4a7dca
[Port] [6000.7] Make Surface Cache volume override warning about miss…
svc-reach-platform-support Nov 6, 2026
6d607e8
[Backport] Bugfix: Enable support for GBUFFER_NORMALS_OCT mode in Sur…
urasmus Nov 6, 2026
6afff78
[Port] [6000.7] [UUM-147992][UUM-158701][7000.0] Fix sprite rendering…
svc-reach-platform-support Nov 6, 2026
b4aa9b4
[Port] [6000.7] [UUM-138928] Fix editor crash from stack overflow whe…
svc-reach-platform-support Nov 6, 2026
2647d08
[Port] [6000.7] Prefabs linger in Surface Cache once you exit "prefab…
svc-reach-platform-support Nov 6, 2026
f7aed34
[Port] [6000.7] Don't trace 1 pixel at a time for rays heading toward…
svc-reach-platform-support Nov 6, 2026
bf01572
[Port] [6000.7] [UUM-158525] [ShaderGraph] Fix missing vertex input e…
svc-reach-platform-support Nov 6, 2026
c9acfce
[Port] [6000.7] [UUM-159962] [VFX] Fix Custom HLSL function body pars…
robert-badea-unity Nov 6, 2026
94bd7fe
[Port] [6000.7] Fix HDRP XR depth copy scale when RTHandle allocation…
svc-reach-platform-support Nov 6, 2026
d3d1f84
[Port] [6000.7] [UUM-160178] [GI] Fix out-of-bounds access in probe o…
svc-reach-platform-support Nov 6, 2026
a9c1717
[UUM-160598] Disable unstable Materials Playmode test
Nov 6, 2026
821139a
[Port] [6000.7] Fix DX12 define.
svc-reach-platform-support Nov 7, 2026
6a87426
[Port] [6000.7] Ignore objects with materials that have no meta pass …
svc-reach-platform-support Nov 9, 2026
3f8da12
[Port] [6000.7] VolumeProfileEditor - When editors are empty re-init …
svc-reach-platform-support Nov 9, 2026
21e3bf3
[Port] [6000.7] UUM-160232: Add Surface Cache ray tracing normal bias…
svc-reach-platform-support Nov 9, 2026
f79c162
[Port] [6000.7] UUM-160166: Fix Surface Cache punctual light reconnec…
svc-reach-platform-support Nov 9, 2026
83c29e5
[Port] [6000.7] [UUM-156479] Terrain: write rendering layers from the…
svc-reach-platform-support Nov 10, 2026
76b0c94
[Port] [6000.7] [URP] [GSDET-1480] Make the 301 shadow-caster culling…
svc-reach-platform-support Nov 10, 2026
10b16f4
[Port] [6000.7] [UUM-158437] Fixed Medium quality soft shadows costin…
svc-reach-platform-support Nov 10, 2026
d2d78d5
[Port] [6000.7] [UUM-154532] [HDRP] Fix Shader Graph LOD crossfade sh…
svc-reach-platform-support Nov 10, 2026
1bc650a
[Port] [6000.7] [UUM-159486] Fix emission lost when converting Standa…
svc-reach-platform-support Nov 11, 2026
fcd508d
[Port] [6000.7] [UUM-159309] [APV] Fix NullReferenceException when re…
svc-reach-platform-support Nov 11, 2026
70da1b8
Update URP Standard/Indoors scene templates: APV baking sets, volume …
DanMillerDev Nov 11, 2026
f9dbc77
[Port] [6000.7] [UUM-160580] Keep prefab conversions when the convert…
arttu-peltonen Nov 11, 2026
d1507fd
[Port] [6000.7] Ambient occlusion is lost after upgrading when the ca…
svc-reach-platform-support Nov 11, 2026
6947350
[Port] [6000.7] [UUM-158409] [URP 2D] Fix Shadow Caster 2D not follow…
svc-reach-platform-support Nov 12, 2026
e21d6d3
[Port] [6000.7] Reflection Probe throws NullReferenceException and Re…
svc-reach-platform-support Nov 12, 2026
2699417
[Port] [6000.7] [UUM-153597] [URP] Clear skipped-prepass textures in …
svc-reach-platform-support Nov 12, 2026
b3a78f2
[Port] [6000.7] Graphics/URP - [UUM-155833] - Fix multi-display suppo…
svc-reach-platform-support Nov 12, 2026
6def058
[Port] [6000.7] [ShaderGraph][UUM-159528] Warn when a Screen Position…
svc-reach-platform-support Nov 13, 2026
41a6cb1
[Port] [6000.7] Fix Clamp Color and Min Smoothness settings in URP SSR
svc-reach-platform-support Nov 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 @@ -234,7 +234,11 @@ public Status Convert(IRenderPipelineConverterItem item, out string message)

var scenePath = GetUnloadedScenePath(assetItem.GlobalObjectId);
if (scenePath != null)
{
// Opening the scene unloads converted assets that are not saved, such as prefabs
AssetDatabase.SaveAssets();
(m_ScenesOpenedForConversion ??= new HashSet<string>()).Add(scenePath);
}

var obj = assetItem.LoadObject();

Expand Down Expand Up @@ -273,6 +277,8 @@ void SaveSceneOpenedForConversion(UnityEngine.Object obj)

public virtual void AfterConvert()
{
// A later converter can open scenes too
AssetDatabase.SaveAssets();
m_ScenesOpenedForConversion?.Clear();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static bool TryGetReferenceInfoFromType(Type type, out MaterialReferenceI

foreach (var prop in type.GetProperties(flags))
{
if (!prop.CanRead) continue;
if (!prop.CanRead || prop.GetSetMethod(true) == null) continue; // skip read-only properties, e.g. Terrain.splatBaseMaterial
if (prop.GetIndexParameters().Length > 0) continue; // skip indexers

if (prop.PropertyType == typeof(Material) || prop.PropertyType == typeof(Material[]))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@ public enum IndexingOptions
// Set while a caller blocks the Editor, so searches have to finish before RunQueuedSearch returns
public static bool synchronous { get; set; }

// Asset changes reach the index after a delay and are then applied in the background, and searches do not wait for them
static void WaitForIndexUpToDate(Action onIndexUpToDate)
{
if (IsIndexUpdatePending())
EditorApplication.delayCall += () => WaitForIndexUpToDate(onIndexUpToDate);
else
onIndexUpToDate();
}

static bool IsIndexUpdatePending()
{
// The index defers its updates until play mode is exited
if (EditorApplication.isPlaying)
return false;

var db = SearchDatabase.GetDefaultSearchDatabase();
if (db.LoadingState == SearchDatabase.LoadState.Error || db.LoadingState == SearchDatabase.LoadState.Canceled)
return false;

return SearchMonitor.pending || !db.ready || db.updating || db.needsUpdate;
}

public static void RunQueuedSearch(
IndexingOptions neededOptions,
List<(string query, string description)> contextSearchQueriesAndIds,
Expand Down Expand Up @@ -111,7 +133,7 @@ void ProcessNextSearch()

void OnSearchIndexReady()
{
ProcessNextSearch();
WaitForIndexUpToDate(ProcessNextSearch);
}

if (isDeepSearchEnabled != needsDeepSearch || isPackageIndexingEnabled != needsPackageIndexing)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,15 @@ void Convert(ClickEvent evt)
EditorUtility.ClearProgressBar();
}

// Save before reloading the scene we started from, which unloads converted assets that are not saved
AssetDatabase.SaveAssets();

// Checking if we have changed current scene. If we have we reload the old scene we started from
if (!string.IsNullOrEmpty(currentScenePath) && currentScenePath != SceneManager.GetActiveScene().path)
{
EditorSceneManager.OpenScene(currentScenePath);
}

AssetDatabase.SaveAssets();

RefreshUI();

GraphicsToolUsageAnalytic.ActionPerformed<RenderPipelineConvertersEditor>(nameof(Convert), contextInfo.ToNestedColumn());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ static AccelStructAdapter BuildAccelerationStructure(out bool hasTerrains)
Array.Fill(matIndices, renderer.component.renderingLayerMask); // repurpose the material id as we don't need it here
var perSubMeshMask = new uint[subMeshCount];
Array.Fill(perSubMeshMask, GetInstanceMask(renderer.component.shadowCastingMode));
Span<bool> perSubMeshOpaqueness = stackalloc bool[subMeshCount];
perSubMeshOpaqueness.Fill(true);
var perSubMeshOpaqueness = new bool[subMeshCount];
Array.Fill(perSubMeshOpaqueness, true);

accelStruct.AddInstance(EntityId.ToULong(renderer.component.GetEntityId()), renderer.component, perSubMeshMask, matIndices, perSubMeshOpaqueness, 1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,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 @@ -221,8 +221,8 @@ static AccelStructAdapter BuildAccelerationStructure(out bool hasTerrains)
var matIndices = GetMaterialIndices(renderer.component);
var perSubMeshMask = new uint[subMeshCount];
Array.Fill(perSubMeshMask, GetInstanceMask(renderer.component.shadowCastingMode));
Span<bool> perSubMeshOpaqueness = stackalloc bool[subMeshCount];
perSubMeshOpaqueness.Fill(true);
var perSubMeshOpaqueness = new bool[subMeshCount];
Array.Fill(perSubMeshOpaqueness, true);

accelStruct.AddInstance(EntityId.ToULong(renderer.component.GetEntityId()), renderer.component, perSubMeshMask, matIndices, perSubMeshOpaqueness, 1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ static AccelStructAdapter BuildAccelerationStructure(int mask, out bool hasTerra
int subMeshCount = mesh.subMeshCount;
var maskAndMatDummy = new uint[subMeshCount];
System.Array.Fill(maskAndMatDummy, 0xFFFFFFFF);
Span<bool> perSubMeshOpaqueness = stackalloc bool[subMeshCount];
perSubMeshOpaqueness.Fill(true);
var perSubMeshOpaqueness = new bool[subMeshCount];
System.Array.Fill(perSubMeshOpaqueness, true);

accelStruct.AddInstance(EntityId.ToULong(renderer.component.GetEntityId()), renderer.component, maskAndMatDummy, maskAndMatDummy, perSubMeshOpaqueness, 1);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ internal static InstanceHandle[] AddLODInstances(World world, CommandBuffer cmd,
if ((lodBuildData.LodMask & currentLodLevel) == 0)
continue;

Span<uint> currentLodMasks = stackalloc uint[lodBuildData.Masks.Length];
var currentLodMasks = new uint[lodBuildData.Masks.Length];
GetCurrentLodInstanceMasks(pathtracingShader, lodBuildData.Masks, currentLodMasks);

instanceHandles[i++] = world.AddInstance(lodBuildData.Mesh, lodBuildData.Materials, currentLodMasks, UnityComputeWorld.RenderingObjectLayer, lodBuildData.LocalToWorldMatrix, lodBuildData.Bounds, lodBuildData.IsStatic, lodBuildData.Filter, true);
Expand All @@ -715,7 +715,7 @@ internal static InstanceHandle[] AddLODInstances(World world, CommandBuffer cmd,
if ((lodZeroInstance.LodMask & currentLodLevel) != 0)
continue;

Span<uint> lodZeroMasks = stackalloc uint[lodZeroInstance.Masks.Length];
var lodZeroMasks = new uint[lodZeroInstance.Masks.Length];
GetLodZeroInstanceMasks(pathtracingShader, lodZeroInstance.Masks, lodZeroMasks);

world.UpdateInstanceMask(lodZeroInstance.InstanceHandle, lodZeroMasks);
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 @@ -4,6 +4,7 @@
[assembly: InternalsVisibleTo("Unity.RenderPipelines.Core.Editor")]
[assembly: InternalsVisibleTo("Unity.RenderPipelines.Core.Editor.CLI")]
[assembly: InternalsVisibleTo("Unity.RenderPipelines.Core.Runtime.Tests")]
[assembly: InternalsVisibleTo("Unity.RenderPipelines.Core.Editor.Tests")]
[assembly: InternalsVisibleTo("Unity.GraphicTests.Performance.RPCore.Runtime")]
[assembly: InternalsVisibleTo("Unity.GraphicTests.Performance.Universal.Runtime")] // access to internal ProfileIds

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 @@ -627,8 +627,10 @@ internal void EnsurePerSceneData(Scene scene, string sceneGuid)
{
var 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 @@ -68,7 +68,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
Loading
Loading