Skip to content

Commit

Permalink
com.unity.render-pipelines.core@7.6.0
Browse files Browse the repository at this point in the history
## [7.6.0] - 2021-03-25

### Added
- Support for the PlayStation 5 platform has been added.
  • Loading branch information
Unity Technologies committed Mar 25, 2021
1 parent 2f25e94 commit 74ae897
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [7.6.0] - 2021-03-25

### Added
- Support for the PlayStation 5 platform has been added.

## [7.5.3] - 2021-01-11

Version Updated
Expand Down
2 changes: 1 addition & 1 deletion Editor/MaterialUpgrader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public static void UpgradeProjectFolder(List<MaterialUpgrader> upgraders, string
/// <param name="flags">Material Upgrader flags.</param>
public static void UpgradeProjectFolder(List<MaterialUpgrader> upgraders, HashSet<string> shaderNamesToIgnore, string progressBarName, UpgradeFlags flags = UpgradeFlags.None)
{
if (!EditorUtility.DisplayDialog(DialogText.title, "The upgrade will overwrite materials in your project. " + DialogText.projectBackMessage, DialogText.proceed, DialogText.cancel))
if ((!Application.isBatchMode) && (!EditorUtility.DisplayDialog(DialogText.title, "The upgrade will overwrite materials in your project. " + DialogText.projectBackMessage, DialogText.proceed, DialogText.cancel)))
return;

int totalMaterialCount = 0;
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Documentation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class DocumentationInfo
/// </summary>
///
[Obsolete("Can not be used anymore, use Documentation.releaseVersion", false)]
public const string version = "7.3";
public const string version = "7.6";
}

//Need to live in Runtime as Attribute of documentation is on Runtime classes \o/
Expand All @@ -35,7 +35,7 @@ class Documentation : DocumentationInfo
internal const string endURL = ".html";


internal const string releaseVersion = "7.5";
internal const string releaseVersion = "7.6";

//Temporary for now, there is several part of the Core documentation that are misplaced in HDRP documentation.
//use this base url for them:
Expand Down
1 change: 1 addition & 0 deletions Runtime/Textures/TextureXR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static bool useTexArray
case GraphicsDeviceType.Direct3D11:
case GraphicsDeviceType.Direct3D12:
case GraphicsDeviceType.PlayStation4:
case GraphicsDeviceType.PlayStation5:
case GraphicsDeviceType.Vulkan:
return true;

Expand Down
4 changes: 3 additions & 1 deletion ShaderLibrary/Common.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@
// Include language header
#if defined(SHADER_API_XBOXONE)
#include "Packages/com.unity.render-pipelines.xboxone/ShaderLibrary/API/XBoxOne.hlsl"
#elif defined(SHADER_API_PSSL)
#elif defined(SHADER_API_PS4)
#include "Packages/com.unity.render-pipelines.ps4/ShaderLibrary/API/PSSL.hlsl"
#elif defined(SHADER_API_PS5)
#include "Packages/com.unity.render-pipelines.ps5/ShaderLibrary/API/PSSL.hlsl"
#elif defined(SHADER_API_D3D11)
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/API/D3D11.hlsl"
#elif defined(SHADER_API_METAL)
Expand Down
5 changes: 4 additions & 1 deletion ShaderLibrary/SpaceTransforms.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ float3 GetCameraRelativePositionWS(float3 positionWS)

real GetOddNegativeScale()
{
return unity_WorldTransformParams.w;
// FIXME: We should be able to just return unity_WorldTransformParams.w, but it is not
// properly set at the moment, when doing ray-tracing; once this has been fixed in cpp,
// we can revert back to the former implementation.
return unity_WorldTransformParams.w >= 0.0 ? 1.0 : -1.0;
}

float3 TransformObjectToWorld(float3 positionOS)
Expand Down
2 changes: 1 addition & 1 deletion ShaderLibrary/Version.hlsl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define SHADER_LIBRARY_VERSION_MAJOR 7
#define SHADER_LIBRARY_VERSION_MINOR 5
#define SHADER_LIBRARY_VERSION_MINOR 6

#define VERSION_GREATER_EQUAL(major, minor) ((SHADER_LIBRARY_VERSION_MAJOR > major) || ((SHADER_LIBRARY_VERSION_MAJOR == major) && (SHADER_LIBRARY_VERSION_MINOR >= minor)))
#define VERSION_LOWER(major, minor) ((SHADER_LIBRARY_VERSION_MAJOR < major) || ((SHADER_LIBRARY_VERSION_MAJOR == major) && (SHADER_LIBRARY_VERSION_MINOR < minor)))
Expand Down
11 changes: 11 additions & 0 deletions ValidationExceptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

{
"Exceptions":
[
{
"ValidationTest": "API Validation",
"ExceptionError": "Breaking changes require a new major version.",
"PackageVersion": "7.6.0"
}
]
}
7 changes: 7 additions & 0 deletions ValidationExceptions.json.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "com.unity.render-pipelines.core",
"description": "SRP Core makes it easier to create or customize a Scriptable Render Pipeline (SRP). SRP Core contains reusable code, including boilerplate code for working with platform-specific graphics APIs, utility functions for common rendering operations, and shader libraries. The code in SRP Core is use by the High Definition Render Pipeline (HDRP) and Universal Render Pipeline (URP). If you are creating a custom SRP from scratch or customizing a prebuilt SRP, using SRP Core will save you time.",
"version": "7.5.3",
"version": "7.6.0",
"unity": "2019.4",
"unityRelease": "14f1",
"unityRelease": "23f1",
"displayName": "Core RP Library",
"dependencies": {
"com.unity.ugui": "1.0.0",
"com.unity.modules.physics": "1.0.0"
},
"upmCi": {
"footprint": "80b83f326f847c22d1b27218dc54d2b3e2672a4c"
"footprint": "ead9a96e90e328ac99ad3f6e128368efc06fff57"
},
"repository": {
"url": "https://github.com/Unity-Technologies/Graphics.git",
"type": "git",
"revision": "ac3b5ff88a3e68b57911bd6e66fdf7bbc2090dac"
"revision": "b9e8ac45ef83cffce6a345c8b09ec7575fd0b713"
}
}

0 comments on commit 74ae897

Please sign in to comment.