Skip to content

Commit

Permalink
Depth bias error lines points (#36489)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdavidmills authored Oct 25, 2024
1 parent 692043d commit 72bace5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ A validation error can occur if any of the following are false:

- For `depthStencil` objects:
- `format` is a [`depth-or-stencil`](https://gpuweb.github.io/gpuweb/#depth-or-stencil-format) format.
- The [`depthBias`](#depthbias), [`depthBiasClamp`](#depthbiasclamp), and [`depthBiasSlopeScale`](#depthbiasslopescale) properties are set to <code>0</code> for line and point topologies, i.e., if [`topology`](#topology) is set to `"line-list"`, `"line-strip"`, or `"point-list"`.
- If `depthWriteEnabled` is `true` or `depthCompare` is not `"always"`, `format` has a depth component.
- If `stencilFront` or `stencilBack`'s properties are not at their default values, `format` has a stencil component.
- For `fragment` objects:
Expand Down

0 comments on commit 72bace5

Please sign in to comment.