WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
191794
[WebGPU] Begin implementing WebGPUTexture, WebGPUTextureView, and WebGPUTextureFormatEnum, and WebGPUSwapChain::configure upgrades
https://bugs.webkit.org/show_bug.cgi?id=191794
Summary
[WebGPU] Begin implementing WebGPUTexture, WebGPUTextureView, and WebGPUTextu...
Justin Fan
Reported
2018-11-16 16:41:54 PST
[WebGPU] Begin implementing WebGPUTexture, WebGPUTextureView, and WebGPUTextureFormatEnum, and WebGPUSwapChain::configure upgrades
Attachments
Patch
(64.65 KB, patch)
2018-11-16 17:01 PST
,
Justin Fan
dino
: review+
justin_fan
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Justin Fan
Comment 1
2018-11-16 17:01:47 PST
Created
attachment 355163
[details]
Patch
Radar WebKit Bug Importer
Comment 2
2018-11-16 17:27:32 PST
<
rdar://problem/46144874
>
Dean Jackson
Comment 3
2018-11-19 14:54:26 PST
Comment on
attachment 355163
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=355163&action=review
> Source/WebCore/Modules/webgpu/GPUTextureFormatEnum.h:40 > +std::optional<PlatformTextureFormat> convertAndValidate(GPUTextureFormatEnum);
I'm not sure I like this in the WebCore namespace. Do we need it in more than one place? i.e. can it be file static? It seems it is only used in GPUSwapChainMetal, so I think it can live there for the moment.
> Source/WebCore/Modules/webgpu/WebGPUTextureFormatEnum.idl:33 > + "R8G8B8A8Unorm", > + "R8G8B8A8Uint", > + "B8G8R8A8Unorm", > + "D32FloatS8Uint"
Ugh. I wonder if WebGPU should use better names here. Or maybe those are the names everyone expects?
Dean Jackson
Comment 4
2018-11-19 14:54:45 PST
I might make the small changes and land this patch.
Jon Lee
Comment 5
2018-11-19 15:30:12 PST
Comment on
attachment 355163
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=355163&action=review
>> Source/WebCore/Modules/webgpu/WebGPUTextureFormatEnum.idl:33 >> + "D32FloatS8Uint" > > Ugh. I wonder if WebGPU should use better names here. Or maybe those are the names everyone expects?
I think so.
https://docs.rs/vulkano/0.7/vulkano/format/index.html
https://docs.microsoft.com/en-us/windows/desktop/api/dxgiformat/ne-dxgiformat-dxgi_format
Dean Jackson
Comment 6
2018-11-19 15:34:26 PST
Committed
r238382
: <
https://trac.webkit.org/changeset/238382
>
Dean Jackson
Comment 7
2018-11-19 15:38:39 PST
(In reply to Jon Lee from
comment #5
)
> Comment on
attachment 355163
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=355163&action=review
> > >> Source/WebCore/Modules/webgpu/WebGPUTextureFormatEnum.idl:33 > >> + "D32FloatS8Uint" > > > > Ugh. I wonder if WebGPU should use better names here. Or maybe those are the names everyone expects? > > I think so. >
https://docs.rs/vulkano/0.7/vulkano/format/index.html
>
https://docs.microsoft.com/en-us/windows/desktop/api/dxgiformat/ne
- > dxgiformat-dxgi_format
OK! Metal seems to make them a little nicer, in that R8G8B8A8 -> RGBA8, but I guess it doesn't matter.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug