Refactor: GPU: Use Depth32F

Blender uses depth24 for legacy reasons. All backends that we support
have support for depth32f.

This PR updates all usages of depth24 with depth32f.

- depth24 are not supported on AMD/Intel/Vulkan and Metal. There depth32f
  was already used to work around this limitation.
- This allows us to implement reverse depth in workbench, overlay and
grease pencil in the future.

Pull Request: https://projects.blender.org/blender/blender/pulls/140531
This commit is contained in:
Jeroen Bakker
2025-06-19 13:30:50 +02:00
parent 0e737b23c5
commit a5e30aaa9e
12 changed files with 19 additions and 19 deletions

View File

@@ -682,7 +682,7 @@ void Instance::end_sync()
size.x,
size.y,
1,
GPU_DEPTH24_STENCIL8,
GPU_DEPTH32F_STENCIL8,
GPU_TEXTURE_USAGE_GENERAL,
nullptr);
}