File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2455,6 +2455,12 @@ typedef struct WGPURenderPassDepthStencilAttachment {
2455
2455
*/
2456
2456
WGPUStoreOp depthStoreOp;
2457
2457
/* *
2458
+ * If NaN, indicates an `undefined` value (as defined by the JS spec).
2459
+ * Use @ref WGPU_DEPTH_CLEAR_VALUE_UNDEFINED to indicate this semantically.
2460
+ *
2461
+ * NaN is determined by `isnan(depthClearValue) != 0`.
2462
+ * (Do not use an equality check, because `NaN == NaN` is false.)
2463
+ *
2458
2464
* The `INIT` macro sets this to @ref WGPU_DEPTH_CLEAR_VALUE_UNDEFINED.
2459
2465
*/
2460
2466
float depthClearValue;
Original file line number Diff line number Diff line change @@ -2454,7 +2454,11 @@ structs:
2454
2454
default : undefined
2455
2455
- name : depth_clear_value
2456
2456
doc : |
2457
- TODO
2457
+ If NaN, indicates an `undefined` value (as defined by the JS spec).
2458
+ Use @ref WGPU_DEPTH_CLEAR_VALUE_UNDEFINED to indicate this semantically.
2459
+
2460
+ NaN is determined by `isnan(depthClearValue) != 0`.
2461
+ (Do not use an equality check, because `NaN == NaN` is false.)
2458
2462
type : float32
2459
2463
default : constant.depth_clear_value_undefined
2460
2464
- name : depth_read_only
You can’t perform that action at this time.
0 commit comments