Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Dec 11, 2024
1 parent dbdc64a commit d1e661d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,11 @@ typedef struct WGPURenderPassDepthStencilAttachment {
*/
WGPUStoreOp depthStoreOp;
/**
* If NaN (`isnan()` returns true), indicates an `undefined` value (as defined by the JS spec).
* If NaN, indicates an `undefined` value (as defined by the JS spec).
* Use @ref WGPU_DEPTH_CLEAR_VALUE_UNDEFINED to indicate this semantically.
*
* NaN is determined by `isnan(depthClearValue) != 0`.
* (Do not use an equality check, because `NaN == NaN` is false.)
*
* The `INIT` macro sets this to @ref WGPU_DEPTH_CLEAR_VALUE_UNDEFINED.
*/
Expand Down
6 changes: 5 additions & 1 deletion webgpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,11 @@ structs:
default: undefined
- name: depth_clear_value
doc: |
If NaN (`isnan()` returns true), indicates an `undefined` value (as defined by the JS spec).
If NaN, indicates an `undefined` value (as defined by the JS spec).
Use @ref WGPU_DEPTH_CLEAR_VALUE_UNDEFINED to indicate this semantically.
NaN is determined by `isnan(depthClearValue) != 0`.
(Do not use an equality check, because `NaN == NaN` is false.)
type: float32
default: constant.depth_clear_value_undefined
- name: depth_read_only
Expand Down

0 comments on commit d1e661d

Please sign in to comment.