~mmach/netext73/webkit2gtk

« back to all changes in this revision

Viewing changes to Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/doc/PackedDepthStencilSupport.md

  • Committer: mmach
  • Date: 2023-06-16 17:21:37 UTC
  • Revision ID: netbit73@gmail.com-20230616172137-2rqx6yr96ga9g3kp
1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Packed depth stencil support in Metal
 
2
 
 
3
Metal has different runtime behaviors when it comes to packed depth stencil format usage.
 
4
 
 
5
On macOS, packed depth24stencil8 format is supported (albeit optionally) and if application
 
6
wants to use both depth and stencil attachments in the same render pass, these attachments must
 
7
point to the same packed depth stencil texture. In other words, it is not permitted to use separate
 
8
depth & stencil textures in a same render pass.
 
9
 
 
10
iOS simulators and mac Catalyst platforms have the same restrictions as macOS.
 
11
 
 
12
On iOS devices, depth24stencil8 format is not available. The only packed format supported is depth32stencil8 which is a 64 bits format (24 bits unused). However, metal runtime allows separate
 
13
depth & stencil textures to be attached to one render pass. So technically, one depth32 texture
 
14
and one stencil8 texture can be used together.
 
 
b'\\ No newline at end of file'