暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

UniversalRenderPipelineRuntimeTextures.cs 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. /// <summary>
  5. /// Class containing texture resources used in URP.
  6. /// </summary>
  7. [Serializable]
  8. [SupportedOnRenderPipeline(typeof(UniversalRenderPipelineAsset))]
  9. [Categorization.CategoryInfo(Name = "R: Runtime Textures", Order = 1000), HideInInspector]
  10. public class UniversalRenderPipelineRuntimeTextures : IRenderPipelineResources
  11. {
  12. [SerializeField][HideInInspector] private int m_Version = 1;
  13. /// <summary>
  14. /// Version of the Texture resources
  15. /// </summary>
  16. public int version => m_Version;
  17. bool IRenderPipelineGraphicsSettings.isAvailableInPlayerBuild => true;
  18. [SerializeField]
  19. [ResourcePath("Textures/BlueNoise64/L/LDR_LLL1_0.png")]
  20. private Texture2D m_BlueNoise64LTex;
  21. /// <summary>
  22. /// Pre-baked blue noise textures.
  23. /// </summary>
  24. public Texture2D blueNoise64LTex
  25. {
  26. get => m_BlueNoise64LTex;
  27. set => this.SetValueAndNotify(ref m_BlueNoise64LTex, value, nameof(m_BlueNoise64LTex));
  28. }
  29. [SerializeField]
  30. [ResourcePath("Textures/BayerMatrix.png")]
  31. private Texture2D m_BayerMatrixTex;
  32. /// <summary>
  33. /// Bayer matrix texture.
  34. /// </summary>
  35. public Texture2D bayerMatrixTex
  36. {
  37. get => m_BayerMatrixTex;
  38. set => this.SetValueAndNotify(ref m_BayerMatrixTex, value, nameof(m_BayerMatrixTex));
  39. }
  40. [SerializeField]
  41. [ResourcePath("Textures/DebugFont.tga")]
  42. private Texture2D m_DebugFontTex;
  43. /// <summary>
  44. /// Debug font texture.
  45. /// </summary>
  46. public Texture2D debugFontTexture
  47. {
  48. get => m_DebugFontTex;
  49. set => this.SetValueAndNotify(ref m_DebugFontTex, value, nameof(m_DebugFontTex));
  50. }
  51. }
  52. }