Sitelet https://github.com/gpuweb/gpuweb/pull/517/files
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2258,10 +2258,21 @@ dictionary GPUBufferCopyView {
required GPUBuffer buffer;
GPUSize64 offset = 0;
required GPUSize32 rowPitch;
required GPUSize32 imageHeight;
GPUSize32 imageHeight = 0;
};
</script>

<dl dfn-type=dict-member dfn-for=GPUBufferCopyView>
: <dfn>imageHeight</dfn>
::
The pitch (measured as a multiple of {{GPUBufferCopyView/rowPitch}} bytes)
between different `z` values of the target texture.
For {{GPUTextureDimension/3d}} textures, `z` refers to the texture's depth.
For {{GPUTextureDimension/2d}} textures, `z` refers to the texture's array layers.

An `imageHeight` of zero is only valid for copies with a `copySize.depth` of 1.
</dl>

<script type=idl>
dictionary GPUTextureCopyView {
required GPUTexture texture;
Expand Down