Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fogbugz # 1365368] Fixing debug views for drs #5948
- Loading branch information
1 parent
018f746
commit 181334c
Showing
14 changed files
with
213 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
com.unity.render-pipelines.high-definition/Runtime/Debug/ClearDebugBuffer.compute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#pragma only_renderers d3d11 playstation xboxone xboxseries vulkan metal switch | ||
#pragma kernel clearMain | ||
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl" | ||
#include "Packages/com.unity.render-pipelines.high-definition-config/Runtime/ShaderConfig.cs.hlsl" | ||
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/ShaderLibrary/ShaderVariables.hlsl" | ||
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Debug/DebugDisplay.hlsl" | ||
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Debug/DebugDisplay.cs.hlsl" | ||
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/Debug/FullScreenDebug.hlsl" | ||
|
||
float4 _QuadOverdrawClearBuffParams; | ||
#define _BufferOffset _QuadOverdrawClearBuffParams.x | ||
|
||
[numthreads(64, 1, 1)] | ||
void clearMain(uint dispatchThreadID : SV_DispatchThreadID) | ||
{ | ||
const uint totalPixels = (uint)_DebugViewportSize.x * (uint) _DebugViewportSize.y; | ||
if (dispatchThreadID.x > totalPixels) | ||
return; | ||
|
||
_FullScreenDebugBuffer[(int)_BufferOffset + dispatchThreadID.x] = 0.0; | ||
} |
7 changes: 7 additions & 0 deletions
7
com.unity.render-pipelines.high-definition/Runtime/Debug/ClearDebugBuffer.compute.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.