这是indexloc提供的服务,不要输入任何密码
Skip to content

Bytes per texel of depth24plus-stencil8 could be 4 - 5 #3771

@teoxoy

Description

@teoxoy

I think the bytes per texel of depth24plus-stencil8 could be 4 - 5 instead of the current 4 - 8.

On dx12 we use DXGI_FORMAT_R24G8_TYPELESS and its typed friends which are 4 bytes.
On vulkan we use D24_UNORM_S8_UINT/D32_SFLOAT_S8_UINT which are 4/5 bytes.
On metal we use Depth24Unorm_Stencil8/Depth32Float_Stencil8 which are 4/5 bytes.


There is this note on metal's MTLPixelFormatDepth32Float_Stencil8 format though.

When using this format, some Metal device objects allocate 64-bits per pixel.

But I think this happens transparently since I see no way to query the actual size of Depth32Float_Stencil8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU APIcopyeditingPure editorial stuff (copyediting, *.bs file syntax, etc.)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions