Frédéric Vauchelles
7 年前
当前提交
801f262f
共有 9 个文件被更改,包括 114 次插入 和 50 次删除
-
15ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/ScreenSpaceRaymarching.hlsl
-
69ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.cs
-
48ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.cs.custom.hlsl
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.cs.hlsl
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.hlsl
-
21ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugFullScreen.shader
-
6ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDStringConstants.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl
|
|||
#ifndef DEBUGDISPLAY_CS_CUSTOM_HLSL |
|||
#ifndef DEBUGDISPLAY_CS_CUSTOM_HLSL |
|||
void PackScreenSpaceTracingDebug(ScreenSpaceTracingDebug input, out uint4 v01, out uint4 v02, out uint4 v03) |
|||
{ |
|||
v01 = uint4(input.startPositionSSX, input.startPositionSSY, input.cellSizeW, input.cellSizeH); |
|||
v02 = uint4(asuint(input.positionTXS.x), asuint(input.positionTXS.y), asuint(input.positionTXS.z), asuint(input.startLinearDepth)); |
|||
v03 = uint4(input.level, input.levelMax, input.iteration, input.iterationMax); |
|||
} |
|||
|
|||
void UnpackScreenSpaceTracingDebug(uint4 v01, uint4 v02, uint4 v03, out ScreenSpaceTracingDebug input) |
|||
{ |
|||
input.startPositionSSX = v01.x; |
|||
input.startPositionSSY = v01.y; |
|||
input.cellSizeW = v01.z; |
|||
input.cellSizeH = v01.w; |
|||
input.positionTXS.x = asfloat(v02.x); |
|||
input.positionTXS.y = asfloat(v02.y); |
|||
input.positionTXS.z = asfloat(v02.z); |
|||
input.startLinearDepth = asfloat(v02.w); |
|||
input.level = v03.x; |
|||
input.levelMax = v03.y; |
|||
input.iteration = v03.z; |
|||
input.iterationMax = v03.w; |
|||
} |
|||
//void PackScreenSpaceTracingDebug(ScreenSpaceTracingDebug input, out uint4 v01, out uint4 v02, out uint4 v03) |
|||
//{ |
|||
// v01 = uint4(input.startPositionSSX, input.startPositionSSY, input.cellSizeW, input.cellSizeH); |
|||
// v02 = uint4(uint(input.positionTXS.x), uint(input.positionTXS.y), uint(input.positionTXS.z), uint(input.startLinearDepth)); |
|||
// v03 = uint4(input.level, input.levelMax, input.iteration, input.iterationMax); |
|||
//} |
|||
// |
|||
//void UnpackScreenSpaceTracingDebug(uint4 v01, uint4 v02, uint4 v03, out ScreenSpaceTracingDebug input) |
|||
//{ |
|||
// input.startPositionSSX = v01.x; |
|||
// input.startPositionSSY = v01.y; |
|||
// input.cellSizeW = v01.z; |
|||
// input.cellSizeH = v01.w; |
|||
// input.positionTXS.x = float(v02.x); |
|||
// input.positionTXS.y = float(v02.y); |
|||
// input.positionTXS.z = float(v02.z); |
|||
// input.startLinearDepth = float(v02.w); |
|||
// input.level = v03.x; |
|||
// input.levelMax = v03.y; |
|||
// input.iteration = v03.z; |
|||
// input.iterationMax = v03.w; |
|||
//} |
|||
#endif |
|||
#endif |
撰写
预览
正在加载...
取消
保存
Reference in new issue