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:
@@ -682,7 +682,7 @@ void Instance::end_sync()
|
||||
size.x,
|
||||
size.y,
|
||||
1,
|
||||
GPU_DEPTH24_STENCIL8,
|
||||
GPU_DEPTH32F_STENCIL8,
|
||||
GPU_TEXTURE_USAGE_GENERAL,
|
||||
nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user