| Summary: | [WebGPU] Implement Texture::createView() according to the spec | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Myles C. Maxfield <mmaxfield> | ||||||||||||||
| Component: | WebGPU | Assignee: | Myles C. Maxfield <mmaxfield> | ||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||
| Severity: | Normal | CC: | dino, djg, kkinnunen, webkit-bug-importer | ||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||
| OS: | Unspecified | ||||||||||||||||
| Bug Depends on: | 238427 | ||||||||||||||||
| Bug Blocks: | 238367, 238428 | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Myles C. Maxfield
2022-03-23 23:08:29 PDT
Created attachment 455611 [details]
Patch
Comment on attachment 455611 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455611&action=review > Source/WebGPU/WebGPU/Texture.mm:1934 > + textureType = MTLTextureType2DMultisampleArray; This needs to be guarded. https://commits.webkit.org/r291805 Created attachment 455696 [details]
Patch
Created attachment 455863 [details]
Patch
Created attachment 455866 [details]
Patch
Created attachment 455874 [details]
Patch
Created attachment 455887 [details]
Patch
Comment on attachment 455887 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455887&action=review > Source/WebGPU/WebGPU/Texture.mm:1795 > + // "set resolved.mipLevelCount to texture.[[descriptor]].mipLevelCount â resolved.baseMipLevel." non-ascii chars in comment > Source/WebGPU/WebGPU/Texture.mm:1841 > + // "Set resolved.arrayLayerCount to texture.[[descriptor]].size.depthOrArrayLayers â baseArrayLayer." non-ascii > Source/WebGPU/WebGPU/Texture.mm:2031 > + std::optional<MTLPixelFormat> pixelFormat = MTLPixelFormatInvalid; Either: std::optional<MTLPixelFormat> pixelFormat; or: MTLPixelFormat pixelFormat = MTLPixelFormatInvalid; not both? Committed r292145 (249052@trunk): <https://commits.webkit.org/249052@trunk> |