@@ -1322,7 +1322,6 @@ GPUTexture includes GPUObjectBase;
1322
1322
<script type=idl>
1323
1323
dictionary GPUTextureDescriptor : GPUObjectDescriptorBase {
1324
1324
required GPUExtent3D size;
1325
- GPUIntegerCoordinate arrayLayerCount = 1;
1326
1325
GPUIntegerCoordinate mipLevelCount = 1;
1327
1326
GPUSize32 sampleCount = 1;
1328
1327
GPUTextureDimension dimension = "2d";
@@ -1386,7 +1385,7 @@ internal slots of a texture internal object once we have one. -->
1386
1385
- If |texture|.{{GPUTextureDescriptor/dimension}} is {{GPUTextureDimension/"1d"}} ,
1387
1386
defaults to {{GPUTextureViewDimension/"1d"}} .
1388
1387
- If |texture|.{{GPUTextureDescriptor/dimension}} is {{GPUTextureDimension/"2d"}} :
1389
- - If |texture|.{{GPUTextureDescriptor/arrayLayerCount}} is greater than 1
1388
+ - If |texture|.{{GPUTextureDescriptor/size}} . [=Extent3D/depth=] is greater than 1
1390
1389
and {{GPUTextureViewDescriptor/arrayLayerCount}} is 0,
1391
1390
defaults to {{GPUTextureViewDimension/"2d-array"}} .
1392
1391
- Otherwise, defaults to {{GPUTextureViewDimension/"2d"}} .
@@ -1397,7 +1396,7 @@ internal slots of a texture internal object once we have one. -->
1397
1396
If 0, defaults to |texture|.{{GPUTextureDescriptor/mipLevelCount}} − {{GPUTextureViewDescriptor/baseMipLevel}} .
1398
1397
1399
1398
* {{GPUTextureViewDescriptor/arrayLayerCount}} :
1400
- If 0, defaults to |texture|.{{GPUTextureDescriptor/arrayLayerCount}} − {{GPUTextureViewDescriptor/baseArrayLayer}} .
1399
+ If 0, defaults to |texture|.{{GPUTextureDescriptor/size}} . [=Extent3D/depth=] − {{GPUTextureViewDescriptor/baseArrayLayer}} .
1401
1400
1402
1401
</div>
1403
1402
@@ -2646,7 +2645,7 @@ GPUQueue includes GPUObjectBase;
2646
2645
</script>
2647
2646
2648
2647
- {{GPUQueue/copyImageBitmapToTexture()}} :
2649
- - For now, ` copySize.z` must be `1`.
2648
+ - For now, {{GPUQueue/copyImageBitmapToTexture(source, destination, copySize)/copySize}} . [=Extent3D/depth=] must be `1`.
2650
2649
2651
2650
{{GPUQueue/submit(commandBuffers)}} does nothing and produces an error if any of the following is true:
2652
2651
@@ -2839,15 +2838,35 @@ dictionary GPUExtent3DDict {
2839
2838
typedef (sequence<GPUIntegerCoordinate> or GPUExtent3DDict) GPUExtent3D;
2840
2839
</script>
2841
2840
2841
+ An <dfn dfn>Extent3D</dfn> is a {{GPUExtent3D}} .
2842
+ [=Extent3D=] is a spec namespace for the following definitions:
2843
+ <!-- This is silly, but provides convenient syntax for the spec. -->
2844
+
2845
+ <div algorithm="GPUExtent3D accessors" dfn-for=Extent3D>
2846
+ For a given {{GPUExtent3D}} value |extent|, depending on its type, the syntax:
2847
+
2848
+ * |extent|.<dfn dfn>width</dfn> refers to
2849
+ either {{GPUExtent3DDict}} .{{GPUExtent3DDict/width}}
2850
+ or the first item of the sequence.
2851
+ * |extent|.<dfn dfn>height</dfn> refers to
2852
+ either {{GPUExtent3DDict}} .{{GPUExtent3DDict/height}}
2853
+ or the second item of the sequence.
2854
+ * |extent|.<dfn dfn>depth</dfn> refers to
2855
+ either {{GPUExtent3DDict}} .{{GPUExtent3DDict/depth}}
2856
+ or the third item of the sequence.
2857
+ </div>
2858
+
2842
2859
<script type=idl>
2843
2860
typedef sequence<(GPUBuffer or ArrayBuffer)> GPUMappedBuffer;
2844
2861
</script>
2845
2862
2846
2863
{{GPUMappedBuffer}} is always a sequence of 2 elements, of types {{GPUBuffer}}
2847
2864
and {{ArrayBuffer}} , respectively.
2848
2865
2849
- # Temporary usages of non-exported dfns ## {#temp-dfn-usages}
2866
+ # Temporary usages of non-exported dfns # {#temp-dfn-usages}
2850
2867
2851
2868
Eventually all of these should disappear but they are useful to avoid warning while building the specification.
2852
2869
2853
2870
[=vertex buffer=]
2871
+ [=Extent3D/width=]
2872
+ [=Extent3D/height=]
0 commit comments