Exemple #1
0
        static ulong ComputeHash()
        {
            var newPipelineHash = 0UL;

            if (GraphicsSettings.currentRenderPipeline == null)
            {
                newPipelineHash = 0;
            }
            else
            {
                if (AssetDatabase.TryGetGUIDAndLocalFileIdentifier(GraphicsSettings.currentRenderPipeline, out var guid,
                                                                   out long fileId))
                {
                    newPipelineHash =
                        RuntimeUtils.CombineHash((ulong)guid.GetHashCode(), (ulong)fileId);
                }
            }

            return(newPipelineHash);
        }