浏览代码

Add warnings as errors to test projects + fix issues

/main
Tim Cooper 6 年前
当前提交
893f84e9
共有 32 个文件被更改,包括 65 次插入142 次删除
  1. 4
      TestProjects/HDRP_Tests/Assets/GraphicTests/Common/Scripts/WriteShaderToRenderTexture.cs
  2. 4
      TestProjects/HDRP_Tests/Assets/GraphicTests/Scenes/2x_Lighting/2004_AnimatedCookie/CookieUpdater.cs
  3. 8
      TestProjects/HDRP_Tests/Assets/GraphicTests/Scenes/9x_Other/9002_Deferred-and-Forward/DoubleCameraRender.cs
  4. 33
      TestProjects/HDRP_Tests/Packages/manifest.json
  5. 39
      TestProjects/LWGraphicsTest/Packages/manifest.json
  6. 3
      TestProjects/PostProcessing/Packages/manifest.json
  7. 38
      TestProjects/ShaderGraph/Packages/manifest.json
  8. 4
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/PlanarReflectionProbe.cs
  9. 2
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/InfluenceVolume.cs
  10. 6
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/ProxyVolume.cs
  11. 5
      com.unity.render-pipelines.lightweight/LWRP/LightweightAdditionalCameraData.cs
  12. 2
      com.unity.shadergraph/Editor/Data/Graphs/DynamicValueMaterialSlot.cs
  13. 2
      com.unity.shadergraph/Editor/Data/Graphs/DynamicVectorMaterialSlot.cs
  14. 2
      com.unity.shadergraph/Editor/Data/Graphs/GradientInputMaterialSlot.cs
  15. 2
      com.unity.shadergraph/Editor/Data/Graphs/Vector2MaterialSlot.cs
  16. 2
      com.unity.shadergraph/Editor/Data/Graphs/Vector3MaterialSlot.cs
  17. 2
      com.unity.shadergraph/Editor/Data/Graphs/Vector4MaterialSlot.cs
  18. 2
      com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector1Node.cs
  19. 2
      com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector2Node.cs
  20. 2
      com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector3Node.cs
  21. 2
      com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector4Node.cs
  22. 1
      TestProjects/HDRP_Tests/Assets/csc.rsp
  23. 7
      TestProjects/HDRP_Tests/Assets/csc.rsp.meta
  24. 1
      TestProjects/LWGraphicsTest/Assets/csc.rsp
  25. 7
      TestProjects/LWGraphicsTest/Assets/csc.rsp.meta
  26. 1
      TestProjects/PostProcessing/Assets/csc.rsp
  27. 7
      TestProjects/PostProcessing/Assets/csc.rsp.meta
  28. 1
      TestProjects/ShaderGraph/Assets/csc.rsp
  29. 7
      TestProjects/ShaderGraph/Assets/csc.rsp.meta
  30. 8
      TestProjects/HDRP_Tests/Assets/GraphicTests/Tools.meta
  31. 1
      TestProjects/HDRP_Tests/ProjectSettings/ProjectVersion.txt

4
TestProjects/HDRP_Tests/Assets/GraphicTests/Common/Scripts/WriteShaderToRenderTexture.cs


public class WriteShaderToRenderTexture : MonoBehaviour
{
[SerializeField] RenderTexture rt;
[SerializeField] Shader shader;
[SerializeField] RenderTexture rt = null;
[SerializeField] Shader shader = null;
// Use this for initialization
void Start ()

4
TestProjects/HDRP_Tests/Assets/GraphicTests/Scenes/2x_Lighting/2004_AnimatedCookie/CookieUpdater.cs


[ExecuteInEditMode]
public class CookieUpdater : MonoBehaviour
{
[SerializeField] Material crtMaterial;
[SerializeField] Material crtMaterial = null;
[SerializeField] CustomRenderTexture[] customRenderTextures;
[SerializeField] CustomRenderTexture[] customRenderTextures = null;
int frames = 0;

8
TestProjects/HDRP_Tests/Assets/GraphicTests/Scenes/9x_Other/9002_Deferred-and-Forward/DoubleCameraRender.cs


public class DoubleCameraRender : MonoBehaviour
{
[Header("Forward Path")]
[SerializeField] private Camera fwd_Camera;
[SerializeField] private RenderPipelineAsset fwd_RenderPipelineAsset;
[SerializeField] private Camera fwd_Camera = null;
[SerializeField] private RenderPipelineAsset fwd_RenderPipelineAsset = null;
[SerializeField] private Camera dfd_Camera;
[SerializeField] private RenderPipelineAsset dfd_RenderPipelineAsset;
[SerializeField] private Camera dfd_Camera = null;
[SerializeField] private RenderPipelineAsset dfd_RenderPipelineAsset = null;
[SerializeField] private bool refresh = false;

33
TestProjects/HDRP_Tests/Packages/manifest.json


{
"dependencies": {
"com.unity.package-manager-ui": "1.9.9",
"com.unity.textmeshpro": "1.2.1",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.cloth": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.physics2d": "1.0.0",
"com.unity.modules.screencapture": "1.0.0",
"com.unity.modules.terrain": "1.0.0",
"com.unity.modules.terrainphysics": "1.0.0",
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.umbra": "1.0.0",
"com.unity.modules.unityanalytics": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
"com.unity.modules.unitywebrequestaudio": "1.0.0",
"com.unity.modules.unitywebrequesttexture": "1.0.0",
"com.unity.modules.unitywebrequestwww": "1.0.0",
"com.unity.modules.vehicles": "1.0.0",
"com.unity.modules.video": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
"com.unity.textmeshpro": "1.2.4"
},
"testables": [
"com.unity.render-pipelines.high-definition",

39
TestProjects/LWGraphicsTest/Packages/manifest.json


{
"dependencies": {
"com.unity.ads": "2.0.8",
"com.unity.analytics": "2.0.16",
"com.unity.collab-proxy": "1.2.4-preview",
"com.unity.package-manager-ui": "2.0.0-preview.2",
"com.unity.testframework.graphics": "file:../../../com.unity.testframework.graphics",
"com.unity.purchasing": "2.0.1",
"com.unity.standardevents": "1.0.13",
"com.unity.textmeshpro": "1.2.1",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.cloth": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.physics2d": "1.0.0",
"com.unity.modules.screencapture": "1.0.0",
"com.unity.modules.terrain": "1.0.0",
"com.unity.modules.terrainphysics": "1.0.0",
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.umbra": "1.0.0",
"com.unity.modules.unityanalytics": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
"com.unity.modules.unitywebrequestaudio": "1.0.0",
"com.unity.modules.unitywebrequesttexture": "1.0.0",
"com.unity.modules.unitywebrequestwww": "1.0.0",
"com.unity.modules.vehicles": "1.0.0",
"com.unity.modules.video": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
"com.unity.textmeshpro": "1.2.4"
},
"testables": [
"com.unity.render-pipelines.lightweight",

3
TestProjects/PostProcessing/Packages/manifest.json


{
"dependencies": {
"com.unity.postprocessing": "file:../../../com.unity.postprocessing",
"com.unity.testframework.graphics": "file:../../../com.unity.testframework.graphics"
"com.unity.testframework.graphics": "file:../../../com.unity.testframework.graphics",
"com.unity.textmeshpro": "1.2.4"
},
"testables": [
"com.unity.postprocessing",

38
TestProjects/ShaderGraph/Packages/manifest.json


{
"dependencies": {
"com.unity.ads": "2.0.8",
"com.unity.analytics": "2.0.16",
"com.unity.collab-proxy": "1.2.4-preview",
"com.unity.package-manager-ui": "2.0.0-preview.2",
"com.unity.purchasing": "2.0.1",
"com.unity.standardevents": "1.0.13",
"com.unity.textmeshpro": "1.2.1",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.modules.audio": "1.0.0",
"com.unity.modules.cloth": "1.0.0",
"com.unity.modules.director": "1.0.0",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.particlesystem": "1.0.0",
"com.unity.modules.physics": "1.0.0",
"com.unity.modules.physics2d": "1.0.0",
"com.unity.modules.screencapture": "1.0.0",
"com.unity.modules.terrain": "1.0.0",
"com.unity.modules.terrainphysics": "1.0.0",
"com.unity.modules.tilemap": "1.0.0",
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.uielements": "1.0.0",
"com.unity.modules.umbra": "1.0.0",
"com.unity.modules.unityanalytics": "1.0.0",
"com.unity.modules.unitywebrequest": "1.0.0",
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
"com.unity.modules.unitywebrequestaudio": "1.0.0",
"com.unity.modules.unitywebrequesttexture": "1.0.0",
"com.unity.modules.unitywebrequestwww": "1.0.0",
"com.unity.modules.vehicles": "1.0.0",
"com.unity.modules.video": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
"com.unity.textmeshpro": "1.2.4"
},
"testables": [
"com.unity.render-pipelines.shadergraph"

4
com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/PlanarReflectionProbe.cs


}
[SerializeField]
ReflectionProxyVolumeComponent m_ProxyVolumeReference;
ReflectionProxyVolumeComponent m_ProxyVolumeReference = null;
[SerializeField]
InfluenceVolume m_InfluenceVolume = new InfluenceVolume();
[SerializeField]

[SerializeField]
Texture m_BakedTexture;
[SerializeField]
FrameSettings m_FrameSettings;
FrameSettings m_FrameSettings = null;
[SerializeField]
float m_CaptureNearPlane = 1;
[SerializeField]

2
com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/InfluenceVolume.cs


public class InfluenceVolume
{
[SerializeField]
ShapeType m_ShapeType;
ShapeType m_ShapeType = ShapeType.Box;
// Box
[SerializeField]

6
com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/ProxyVolume.cs


public class ProxyVolume
{
[SerializeField]
ShapeType m_ShapeType;
ShapeType m_ShapeType = ShapeType.Box;
// Box
[SerializeField]

[SerializeField]
bool m_BoxInfiniteProjection;
bool m_BoxInfiniteProjection = false;
// Sphere
[SerializeField]

[SerializeField]
bool m_SphereInfiniteProjection;
bool m_SphereInfiniteProjection = false;
public ShapeType shapeType { get { return m_ShapeType; } }

5
com.unity.render-pipelines.lightweight/LWRP/LightweightAdditionalCameraData.cs


[Tooltip("If enabled opaque color texture will render for this camera and bound as _CameraOpaqueTexture.")]
public bool requiresColorTexture = false;
[HideInInspector][SerializeField] float m_Version;
[HideInInspector]
[SerializeField]
float m_Version = 1;
public float version
{
get { return m_Version; }

2
com.unity.shadergraph/Editor/Data/Graphs/DynamicValueMaterialSlot.cs


private Matrix4x4 m_Value;
[SerializeField]
private Matrix4x4 m_DefaultValue;
private Matrix4x4 m_DefaultValue = Matrix4x4.identity;
static readonly string[] k_Labels = {"X", "Y", "Z", "W"};

2
com.unity.shadergraph/Editor/Data/Graphs/DynamicVectorMaterialSlot.cs


private Vector4 m_Value;
[SerializeField]
private Vector4 m_DefaultValue;
private Vector4 m_DefaultValue = Vector4.zero;
static readonly string[] k_Labels = {"X", "Y", "Z", "W"};

2
com.unity.shadergraph/Editor/Data/Graphs/GradientInputMaterialSlot.cs


Gradient m_Value = new Gradient();
[SerializeField]
Gradient m_DefaultValue;
Gradient m_DefaultValue = new Gradient();
public GradientInputMaterialSlot()
{

2
com.unity.shadergraph/Editor/Data/Graphs/Vector2MaterialSlot.cs


Vector2 m_Value;
[SerializeField]
Vector2 m_DefaultValue;
Vector2 m_DefaultValue = Vector2.zero;
[SerializeField]
string[] m_Labels;

2
com.unity.shadergraph/Editor/Data/Graphs/Vector3MaterialSlot.cs


private Vector3 m_Value;
[SerializeField]
private Vector3 m_DefaultValue;
private Vector3 m_DefaultValue = Vector3.zero;
[SerializeField]
string[] m_Labels;

2
com.unity.shadergraph/Editor/Data/Graphs/Vector4MaterialSlot.cs


private Vector4 m_Value;
[SerializeField]
private Vector4 m_DefaultValue;
private Vector4 m_DefaultValue = Vector4.zero;
string[] m_Labels;

2
com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector1Node.cs


public class Vector1Node : AbstractMaterialNode, IGeneratesBodyCode, IPropertyFromNode
{
[SerializeField]
private float m_Value;
private float m_Value = 0;
const string kInputSlotXName = "X";
const string kOutputSlotName = "Out";

2
com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector2Node.cs


public class Vector2Node : AbstractMaterialNode, IGeneratesBodyCode, IPropertyFromNode
{
[SerializeField]
private Vector2 m_Value;
private Vector2 m_Value = Vector2.zero;
const string kInputSlotXName = "X";
const string kInputSlotYName = "Y";

2
com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector3Node.cs


public class Vector3Node : AbstractMaterialNode, IGeneratesBodyCode, IPropertyFromNode
{
[SerializeField]
private Vector3 m_Value;
private Vector3 m_Value = Vector3.zero;
const string kInputSlotXName = "X";
const string kInputSlotYName = "Y";

2
com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/Vector4Node.cs


public class Vector4Node : AbstractMaterialNode, IGeneratesBodyCode, IPropertyFromNode
{
[SerializeField]
private Vector4 m_Value;
private Vector4 m_Value = Vector4.zero;
const string kInputSlotXName = "X";
const string kInputSlotYName = "Y";

1
TestProjects/HDRP_Tests/Assets/csc.rsp


-warnaserror+

7
TestProjects/HDRP_Tests/Assets/csc.rsp.meta


fileFormatVersion: 2
guid: f02c60133309d8e4eb5a9e2254c43a47
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1
TestProjects/LWGraphicsTest/Assets/csc.rsp


-warnaserror+

7
TestProjects/LWGraphicsTest/Assets/csc.rsp.meta


fileFormatVersion: 2
guid: 61eaefa2bf3d60d4d8ae0fe1cb594b9d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1
TestProjects/PostProcessing/Assets/csc.rsp


-warnaserror+

7
TestProjects/PostProcessing/Assets/csc.rsp.meta


fileFormatVersion: 2
guid: ae4856d629969634b9253009a52805c9
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1
TestProjects/ShaderGraph/Assets/csc.rsp


-warnaserror+

7
TestProjects/ShaderGraph/Assets/csc.rsp.meta


fileFormatVersion: 2
guid: 200dc09b47d30b24cbadc0bf24d55f94
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
TestProjects/HDRP_Tests/Assets/GraphicTests/Tools.meta


fileFormatVersion: 2
guid: 9b74b2e60d2862c469ffe529f9331248
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1
TestProjects/HDRP_Tests/ProjectSettings/ProjectVersion.txt


m_EditorVersion: 2018.2.0b9
正在加载...
取消
保存