Add render graph depth access semantics

This commit is contained in:
2026-04-14 13:56:08 +08:00
parent 9950e0a44f
commit 87bf83451b
7 changed files with 93 additions and 5 deletions

View File

@@ -217,7 +217,7 @@ void ReadRenderGraphSurface(
}
if (surface.depthTexture.IsValid()) {
passBuilder.ReadTexture(surface.depthTexture);
passBuilder.ReadDepthTexture(surface.depthTexture);
}
}
@@ -241,7 +241,7 @@ void WriteRenderGraphSurface(
}
if (surface.depthTexture.IsValid()) {
passBuilder.WriteTexture(surface.depthTexture);
passBuilder.WriteDepthTexture(surface.depthTexture);
}
}