Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ spec: WGSL; urlPrefix: https://gpuweb.github.io/gpuweb/wgsl/#
text: subgroup size; url: subgroup-size
type: abstract-op
text: SizeOf; url: sizeof
text: MinTypeSize; url: mintypesize
text: AccessibleSlots; url: accessible-slots
spec: Internationalization Glossary; urlPrefix: https://www.w3.org/TR/i18n-glossary/#
type: dfn
Expand Down Expand Up @@ -8238,6 +8239,13 @@ typedef double GPUPipelineConstantValue; // May represent WGSL's bool, f32, i32,

Note: This ensures there's always enough memory for one element, which allows array
indices to be clamped to the length of the array resulting in an in-memory access.
1. If |T| is a [=runtime-sized=] buffer, then
1. Find all `bufferView` and `bufferArrayView` built-in function calls where the buffer
variable is the originating variable for the pointer argument.
Let the template parameter be |RT|.
1. Return the maximum value of [$MinTypeSize$](|RT|) among all the calls.

Note: This ensures there's always enough memory for a minimally sized |RT| (with `offset`=0).
1. Return [$SizeOf$](|T|).

Note:
Expand Down
Loading
Loading