Skip to content

How to do the depth test #7

@michael8090

Description

@michael8090

To do a depth test, we need to :

  1. encode the depth and color into a 64 int
  2. use atomicMax to compare and write the encoded value to avoid writing conflict
  3. decode the color and write it to the display render targert

But in WebGPU we don't have int64 type, how can we do it properly with WebGPU?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions