Fixing Depth culling out of bounds errors

This commit is contained in:
Dynamitos committed 2024-08-29 11:23:55 +02:00
1 parent 6eb114e892
commit 0be1a3cbde
9 files changed
+136 -44

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
struct DepthDebugData
{
uint mipLevel;
uint mipOffset;
int2 mipDimensions;
int2 screenCornerMin;
int2 screenCornerMax;
int2 origScreenMin;
int2 origScreenMax;
};
struct DepthData
{
//uint bufferLength;
Texture2D<float> texture;
RWStructuredBuffer<float> buffer;
//globallycoherent RWStructuredBuffer<uint> debugHead;
//globallycoherent RWStructuredBuffer<DepthDebugData> debugData;
};