RESOLVED FIXED 195518
[Web GPU] Update GPURenderPipelineDescriptor and add GPUColorStateDescriptor.format
https://bugs.webkit.org/show_bug.cgi?id=195518
Summary [Web GPU] Update GPURenderPipelineDescriptor and add GPUColorStateDescriptor....
Justin Fan
Reported 2019-03-09 04:08:21 PST
Currently Web GPU is hard-coded to provide the required pixel format for the first color attachment, and no others. Add GPUColorStateDescriptor from the API in order to provide the desired texture format to all Web GPU color attachments. Blend states will follow after MVP.
Attachments
Patch (141.87 KB, patch)
2019-03-12 12:43 PDT, Justin Fan
no flags
Patch for landing (149.31 KB, patch)
2019-03-12 17:55 PDT, Justin Fan
no flags
Justin Fan
Comment 1 2019-03-11 10:12:59 PDT
Justin Fan
Comment 2 2019-03-12 12:43:27 PDT
Myles C. Maxfield
Comment 3 2019-03-12 17:14:59 PDT
Comment on attachment 364426 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364426&action=review > Source/WebCore/Modules/webgpu/GPUVertexAttributeDescriptor.idl:35 > +enum GPUVertexFormat { > + "float", > + "float2", > + "float3", > + "float4" > +}; Why not add the rest of the vertex formats? > Source/WebCore/Modules/webgpu/WebGPURenderPipelineDescriptor.cpp:41 > +Optional<GPURenderPipelineDescriptor> WebGPURenderPipelineDescriptor::asGPURenderPipelineDescriptor() const "as" implies this is idempotent, but this appears to create a new object every time it's called. Why not "create...()"? > Tools/DumpRenderTree/DerivedSources-input.xcfilelist:205 > +$(PROJECT_DIR)/dom/Event.idl > +$(PROJECT_DIR)/dom/EventInit.idl > +$(PROJECT_DIR)/dom/EventModifierInit.idl > +$(PROJECT_DIR)/dom/EventTarget.idl > +$(PROJECT_DIR)/dom/FocusEvent.idl > +$(PROJECT_DIR)/dom/GlobalEventHandlers.idl > +$(PROJECT_DIR)/dom/HashChangeEvent.idl > +$(PROJECT_DIR)/dom/InputEvent.idl > +$(PROJECT_DIR)/dom/KeyboardEvent.idl > +$(PROJECT_DIR)/dom/MessageChannel.idl > +$(PROJECT_DIR)/dom/MessageEvent.idl > +$(PROJECT_DIR)/dom/MessagePort.idl > +$(PROJECT_DIR)/dom/MouseEvent.idl > +$(PROJECT_DIR)/dom/MouseEventInit.idl > +$(PROJECT_DIR)/dom/MutationCallback.idl What do these have to do with your patch?
Justin Fan
Comment 4 2019-03-12 17:54:12 PDT
(In reply to Myles C. Maxfield from comment #3) > Comment on attachment 364426 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=364426&action=review > > > Source/WebCore/Modules/webgpu/GPUVertexAttributeDescriptor.idl:35 > > +enum GPUVertexFormat { > > + "float", > > + "float2", > > + "float3", > > + "float4" > > +}; > > Why not add the rest of the vertex formats? There's currently an issue raised where we haven't finalized the list of supported formats across all backend APIs. I can add more in a new patch, but these are enough for now imo.
Justin Fan
Comment 5 2019-03-12 17:55:30 PDT
Created attachment 364487 [details] Patch for landing
WebKit Commit Bot
Comment 6 2019-03-12 18:33:18 PDT
Comment on attachment 364487 [details] Patch for landing Clearing flags on attachment: 364487 Committed r242839: <https://trac.webkit.org/changeset/242839>
WebKit Commit Bot
Comment 7 2019-03-12 18:33:19 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.