Bug 236903

Summary: [WebGPU] Tracer bullet part 9: Basic implementation of bindings
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: WebGPUAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, rmorisset, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 236879    
Attachments:
Description Flags
Patch
none
Patch
none
Patch dino: review+

Description Myles C. Maxfield 2022-02-19 20:59:22 PST
This is a basic implementation of the BindGroup, BindGroupLayout, and PipelineLayout methods. Eventually we'll want to suballocate multiple BindGroups so they coexist within the same Buffer, but this is an initial simple implementation that doesn't do that.
Comment 1 Myles C. Maxfield 2022-02-19 21:00:48 PST
Created attachment 452670 [details]
Patch
Comment 2 Myles C. Maxfield 2022-02-19 21:04:11 PST
Created attachment 452671 [details]
Patch
Comment 3 Myles C. Maxfield 2022-02-19 21:09:23 PST
Created attachment 452675 [details]
Patch
Comment 4 Dean Jackson 2022-02-21 09:33:34 PST
Comment on attachment 452675 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=452675&action=review

> Source/WebGPU/WebGPU/BindGroup.h:48
> +    id <MTLBuffer> vertexArgumentBuffer() const { return m_vertexArgumentBuffer; }
> +    id <MTLBuffer> fragmentArgumentBuffer() const { return m_fragmentArgumentBuffer; }
> +    id <MTLBuffer> computeArgumentBuffer() const { return m_computeArgumentBuffer; }

id<MTLBuffer> no space. Here and elsewhere.
Comment 5 Myles C. Maxfield 2022-02-21 13:28:01 PST
Committed r290264 (?): <https://commits.webkit.org/r290264>
Comment 6 Myles C. Maxfield 2022-02-21 13:28:05 PST
Comment on attachment 452675 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=452675&action=review

>> Source/WebGPU/WebGPU/BindGroup.h:48
>> +    id <MTLBuffer> computeArgumentBuffer() const { return m_computeArgumentBuffer; }
> 
> id<MTLBuffer> no space. Here and elsewhere.

I sent an email to webkit-dev about this. Let's see what people say, and then I'll add a rule to the style guide about it.
Comment 7 Radar WebKit Bug Importer 2022-02-21 13:28:18 PST
<rdar://problem/89253636>