Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66f5a8a

Browse files
committed
Merge branch 'main' into add-dual-source-blending
2 parents 775c2d4 + 6b2e301 commit 66f5a8a

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

spec/index.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ spec: WGSL; urlPrefix: https://gpuweb.github.io/gpuweb/wgsl/#
105105
text: @binding; url: attribute-binding
106106
text: @group; url: attribute-group
107107
text: line break; url: line-break
108+
text: 64-bit unsigned integer; url: 64-bit-integer
108109
for: address spaces
109110
text: workgroup; url: address-spaces-workgroup
110111
for: builtin
@@ -13198,7 +13199,7 @@ When beginning a render pass, {{GPURenderPassDescriptor}}.{{GPURenderPassDescrip
1319813199
must be set to be able to use occlusion queries during the pass. An occlusion query is begun
1319913200
and ended by calling {{GPURenderPassEncoder/beginOcclusionQuery()}} and
1320013201
{{GPURenderPassEncoder/endOcclusionQuery()}} in pairs that cannot be nested, and resolved into a
13201-
{{GPUBuffer}} as 64-bit unsigned integer by {{GPUCommandEncoder}}.{{GPUCommandEncoder/resolveQuerySet()}}.
13202+
{{GPUBuffer}} as a [=64-bit unsigned integer=] by {{GPUCommandEncoder}}.{{GPUCommandEncoder/resolveQuerySet()}}.
1320213203

1320313204
## Timestamp Query ## {#timestamp}
1320413205

@@ -13207,7 +13208,7 @@ Timestamp queries allow applications to write timestamps to a {{GPUQuerySet}}, u
1320713208
- {{GPUComputePassDescriptor}}.{{GPUComputePassDescriptor/timestampWrites}}
1320813209
- {{GPURenderPassDescriptor}}.{{GPURenderPassDescriptor/timestampWrites}}
1320913210

13210-
and then resolve timestamp values (in nanoseconds as a 64-bit unsigned integer) into
13211+
and then resolve timestamp values (in nanoseconds as a [=64-bit unsigned integer=]) into
1321113212
a {{GPUBuffer}}, using {{GPUCommandEncoder}}.{{GPUCommandEncoder/resolveQuerySet()}}.
1321213213

1321313214
Timestamp values are implementation defined and may not increase monotonically. The physical device

wgsl/index.bs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10293,6 +10293,20 @@ host-shared buffer, then:
1029310293
Note: Recall that [=i32=] uses twos-complement representation, so the sign bit
1029410294
is in bit position 31.
1029510295

10296+
<dfn>64-bit integer</dfn> layout: Some features of the WebGPU API write 64-bit
10297+
unsigned integer values into buffers. When such a value |V| appears at byte
10298+
offset |k| of a host-shared buffer, then:
10299+
* Byte |k| contains bits 0 through 7 of |V|
10300+
* Byte |k|+1 contains bits 8 through 15 of |V|
10301+
* Byte |k|+2 contains bits 16 through 23 of |V|
10302+
* Byte |k|+3 contains bits 24 through 31 of |V|
10303+
* Byte |k|+4 contains bits 32 through 39 of |V|
10304+
* Byte |k|+5 contains bits 40 through 47 of |V|
10305+
* Byte |k|+6 contains bits 48 through 55 of |V|
10306+
* Byte |k|+7 contains bits 56 through 63 of |V|
10307+
10308+
Note: WGSL does not have a [=type/concrete=] [=64-bit integer=] type.
10309+
1029610310
A value |V| of type [=f32=] is represented in [[!IEEE-754|IEEE-754]] binary32 format.
1029710311
It has one sign bit, 8 exponent bits, and 23 fraction bits.
1029810312
When |V| is placed at byte offset |k| of host-shared buffer, then:

0 commit comments

Comments
 (0)