Depth buffer access

Hi,

Is there a way to get the last frame’s depth buffer on the CPU without incurring a significant cost and creating an unneeded sync point?

Steps to Reproduce

Hello,

Thank you for reaching out.

I’ve been assigned this issue, and we will be looking into your question about GPU Readback.

Hello,

These two tickets are about reading back Depth/Stencil textures specifically:

[Content removed]

[Content removed]

These tickets provide more information about reading back textures from the GPU in general:

Information about “FRHIGPUTextureReadback”, and references to example usage:

[Content removed]

More information about “FRHIGPUTextureReadback”:

[Content removed]

Information about individual pixel access:

[Content removed]

Information about texture readbacks every frame:

[Content removed]

Discussion of an issue causing readback failure, in the context of “FRHIGPUTextureReadback”:

[Content removed]

Multi-threaded usage of “FRHIGPUTextureReadback” and resultant pixel data:

[Content removed]

Please let us know if this helps.