forked from Dynamitos/Seele
Fixing Depth culling out of bounds errors
This commit is contained in:
1 parent
6eb114e892
commit
0be1a3cbde
9 files changed
+136
-44
No files matched your search
@@ -25,6 +25,15 @@ class DepthCullingPass : public RenderPass {
|
||||
UVector2 srcMipDim;
|
||||
UVector2 dstMipDim;
|
||||
};
|
||||
|
||||
struct DepthDebugData {
|
||||
uint32 mipLevel;
|
||||
uint32 mipOffset;
|
||||
UVector2 mipDimensions;
|
||||
UVector2 screenCornerMin;
|
||||
UVector2 screenCornerMax;
|
||||
};
|
||||
|
||||
Array<uint32> mipOffsets;
|
||||
Array<UVector2> mipDims;
|
||||
Gfx::OShaderBuffer depthMipBuffer;
|
||||
@@ -41,6 +50,10 @@ class DepthCullingPass : public RenderPass {
|
||||
Gfx::OComputeShader depthMipGenShader;
|
||||
Gfx::PComputePipeline depthMipGen;
|
||||
|
||||
//Gfx::OUniformBuffer debugUniform;
|
||||
//Gfx::OShaderBuffer debugHead;
|
||||
//Gfx::OShaderBuffer debugData;
|
||||
|
||||
Gfx::PShaderBuffer cullingBuffer;
|
||||
};
|
||||
DEFINE_REF(DepthCullingPass)
|
||||
|
||||
Reference in new issue
Block a user