Skip to content

Commit fa21be7

Browse files
committed
resolve bikeshedding
1 parent b6098ce commit fa21be7

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

spec/index.bs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ allows additional usages of WebGPU that would have otherwise been invalid.
17561756

17571757
<script type=idl>
17581758
enum GPUFeatureName {
1759-
"disable-depth-clip",
1759+
"depth-clip-control",
17601760
"depth24unorm-stencil8",
17611761
"depth32float-stencil8",
17621762
"pipeline-statistics-query",
@@ -4941,8 +4941,8 @@ dictionary GPUPrimitiveState {
49414941
GPUFrontFace frontFace = "ccw";
49424942
GPUCullMode cullMode = "none";
49434943

4944-
// Requires "disable-depth-clip" feature.
4945-
boolean disableDepthClip = false;
4944+
// Requires "depth-clip-control" feature.
4945+
boolean unclippedDepth = false;
49464946
};
49474947
</script>
49484948

@@ -4961,8 +4961,8 @@ dictionary GPUPrimitiveState {
49614961
: Otherwise
49624962
:: |descriptor|.{{GPUPrimitiveState/stripIndexFormat}} is `undefined`
49634963
</dl>
4964-
- If |descriptor|.{{GPUPrimitiveState/disableDepthClip}} is `true`:
4965-
- |features| must [=list/contain=] {{GPUFeatureName/"disable-depth-clip"}}.
4964+
- If |descriptor|.{{GPUPrimitiveState/unclippedDepth}} is `true`:
4965+
- |features| must [=list/contain=] {{GPUFeatureName/"depth-clip-control"}}.
49664966
</div>
49674967

49684968
<script type=idl>
@@ -9159,7 +9159,7 @@ inside a primitive, is defined by the following inequalities:
91599159
- &minus;|p|.w &le; |p|.y &le; |p|.w
91609160
- 0 &le; |p|.z &le; |p|.w (<dfn dfn>depth clipping</dfn>)
91619161

9162-
If |descriptor|.{{GPURenderPipelineDescriptor/primitive}}.{{GPUPrimitiveState/disableDepthClip}} is `true`,
9162+
If |descriptor|.{{GPURenderPipelineDescriptor/primitive}}.{{GPUPrimitiveState/unclippedDepth}} is `true`,
91639163
[=depth clipping=] is not applied: the [=clip volume=] is not bounded in the z dimension.
91649164

91659165
A primitive passes through this stage unchanged if every one of its edges
@@ -9500,19 +9500,19 @@ An <dfn dfn>Extent3D</dfn> is a {{GPUExtent3D}}.
95009500

95019501
# Feature Index # {#feature-index}
95029502

9503-
## <dfn dfn-type=enum-value dfn-for=GPUFeatureName>disable-depth-clip</dfn> ## {#disable-depth-clip}
9503+
## <dfn dfn-type=enum-value dfn-for=GPUFeatureName>depth-clip-control</dfn> ## {#depth-clip-control}
95049504

9505-
Issue: Define functionality when the {{GPUFeatureName/"disable-depth-clip"}} [=feature=] is enabled.
9505+
Issue: Define functionality when the {{GPUFeatureName/"depth-clip-control"}} [=feature=] is enabled.
95069506

95079507
**Feature Dictionary Values**
95089508

9509-
The following dictionary values are supported if and only if the {{GPUFeatureName/"disable-depth-clip"}}
9509+
The following dictionary values are supported if and only if the {{GPUFeatureName/"depth-clip-control"}}
95109510
[=feature=] is enabled; otherwise, they must be set to their default values:
95119511

95129512
<dl>
95139513
: {{GPUPrimitiveState}}
95149514
::
9515-
* {{GPUPrimitiveState/disableDepthClip}}
9515+
* {{GPUPrimitiveState/unclippedDepth}}
95169516
</dl>
95179517

95189518
## <dfn dfn-type=enum-value dfn-for=GPUFeatureName>depth24unorm-stencil8</dfn> ## {#depth24unorm-stencil8}

0 commit comments

Comments
 (0)