浏览代码

HDRendeRPipeline: Use Last member for enum

/Yibing-Project-2
sebastienlagarde 7 年前
当前提交
df9f236e
共有 2 个文件被更改,包括 18 次插入16 次删除
  1. 8
      ScriptableRenderPipeline/HDRenderPipeline/Debug/DebugDisplay.cs
  2. 26
      ScriptableRenderPipeline/HDRenderPipeline/Debug/DebugDisplay.cs.hlsl

8
ScriptableRenderPipeline/HDRenderPipeline/Debug/DebugDisplay.cs


VertexNormalWS,
VertexColor,
VertexColorAlpha,
// caution if you add something here, it must be use to start enum below
Last,
};
// Number must be contiguous

None = 0,
Depth = DebugViewVarying.VertexColorAlpha + 1,
Depth = DebugViewVarying.Last + 1,
// caution if you add something here, it must be use to start enum below
Last,
}
// Number must be contiguous

None = 0,
Tessellation = DebugViewGbuffer.BakeShadowMask3 + 1,
Tessellation = DebugViewGbuffer.Last + 1,
PixelDisplacement,
VertexDisplacement,
TessellationDisplacement,

26
ScriptableRenderPipeline/HDRenderPipeline/Debug/DebugDisplay.cs.hlsl


#define DEBUGVIEWVARYING_VERTEX_NORMAL_WS (7)
#define DEBUGVIEWVARYING_VERTEX_COLOR (8)
#define DEBUGVIEWVARYING_VERTEX_COLOR_ALPHA (9)
#define DEBUGVIEWVARYING_LAST (10)
#define DEBUGVIEWGBUFFER_DEPTH (10)
#define DEBUGVIEWGBUFFER_BAKE_DIFFUSE_LIGHTING_WITH_ALBEDO_PLUS_EMISSIVE (11)
#define DEBUGVIEWGBUFFER_BAKE_SHADOW_MASK0 (12)
#define DEBUGVIEWGBUFFER_BAKE_SHADOW_MASK1 (13)
#define DEBUGVIEWGBUFFER_BAKE_SHADOW_MASK2 (14)
#define DEBUGVIEWGBUFFER_BAKE_SHADOW_MASK3 (15)
#define DEBUGVIEWGBUFFER_DEPTH (11)
#define DEBUGVIEWGBUFFER_BAKE_DIFFUSE_LIGHTING_WITH_ALBEDO_PLUS_EMISSIVE (12)
#define DEBUGVIEWGBUFFER_BAKE_SHADOW_MASK0 (13)
#define DEBUGVIEWGBUFFER_BAKE_SHADOW_MASK1 (14)
#define DEBUGVIEWGBUFFER_BAKE_SHADOW_MASK2 (15)
#define DEBUGVIEWGBUFFER_BAKE_SHADOW_MASK3 (16)
#define DEBUGVIEWGBUFFER_LAST (17)
#define DEBUGVIEWPROPERTIES_TESSELLATION (16)
#define DEBUGVIEWPROPERTIES_PIXEL_DISPLACEMENT (17)
#define DEBUGVIEWPROPERTIES_VERTEX_DISPLACEMENT (18)
#define DEBUGVIEWPROPERTIES_TESSELLATION_DISPLACEMENT (19)
#define DEBUGVIEWPROPERTIES_DEPTH_OFFSET (20)
#define DEBUGVIEWPROPERTIES_LIGHTMAP (21)
#define DEBUGVIEWPROPERTIES_TESSELLATION (18)
#define DEBUGVIEWPROPERTIES_PIXEL_DISPLACEMENT (19)
#define DEBUGVIEWPROPERTIES_VERTEX_DISPLACEMENT (20)
#define DEBUGVIEWPROPERTIES_TESSELLATION_DISPLACEMENT (21)
#define DEBUGVIEWPROPERTIES_DEPTH_OFFSET (22)
#define DEBUGVIEWPROPERTIES_LIGHTMAP (23)
//
// UnityEngine.Experimental.Rendering.HDPipeline.FullScreenDebugMode: static fields

正在加载...
取消
保存