Skip to content

Commit cfefc5b

Browse files
committed
subsection titles, typo
1 parent dd68d41 commit cfefc5b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/index.bs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10033,6 +10033,8 @@ None of the depth formats can be filtered.
1003310033
<td colspan=2>&checkmark;
1003410034
</table>
1003510035

10036+
#### Reading and Sampling Depth/Stencil Textures #### {#reading-depth-stencil}
10037+
1003610038
When reading or sampling a depth channel via a `texture_depth_*`-typed binding, the value is
1003710039
returned as an `f32` value.
1003810040

@@ -10050,11 +10052,13 @@ Short of adding a new more constrained stencil sampler type (like depth), it's i
1005010052
As this was not a portability pain point for WebGL, it's not expected to be problematic in WebGPU.
1005110053
In practice, expect either `vec4<u32>(S, S, S, S)` or `vec4<u32>(S, 0, 0, 1)`, depending on hardware.
1005210054

10055+
#### Copying Depth/Stencil Textures #### {#copying-depth-stencil}
10056+
1005310057
<div algorithm>
1005410058
Two {{GPUTextureFormat}}s |format1| and |format2| are <dfn dfn>copy-compatible</dfn> if:
1005510059

1005610060
- |format1| equals |format2|, or
10057-
- |format1| and |format2| differ only in whether they are are `srgb` formats (have the `-srgb` suffix).
10061+
- |format1| and |format2| differ only in whether they are `srgb` formats (have the `-srgb` suffix).
1005810062
</div>
1005910063

1006010064
Note:

0 commit comments

Comments
 (0)