Skip to content

WebIDL: add WebGPURasterizationStateDescriptor - #141

Merged
kdashg merged 1 commit into
gpuweb:masterfrom
Richard-Yunchao:rasterizationDescriptor
Dec 10, 2018
Merged

kdashg merged 1 commit into
gpuweb:masterfrom
Richard-Yunchao:rasterizationDescriptor

Conversation

@Richard-Yunchao

Copy link
Copy Markdown

Per the discussions at #137, I submitted this pull request to update the WebIDL.

In addition, we can add some features related to rasterization state (like depth clip/clamp and triangle fill mode) as extensions if we are clear about how to add extensions in WebGPU IDL.

PTAL when you have time, @kvark , @RafaelCintron , @litherum , @kainino0x , @Kangz . Thank you.

Comment thread design/sketch.webidl

@Kangz Kangz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kainino0x kainino0x left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know anything about the depth bias options, but LGTM

@Richard-Yunchao

Copy link
Copy Markdown
Author

@kvark , @RafaelCintron , @litherum , can you take a look at this pr?

These features are basically the same among D3D12, Metal and Vulkan. A small difference is that D3D12 uses integer depth bias constant factor, while Vulkan and Metal accept floats. I use an integer here to avoid troubles with portability, just as Dzmitry pointed out at the corresponding investigation issue.

@grorg

grorg commented Dec 10, 2018

Copy link
Copy Markdown
Contributor

This was discussed in the 10 Dec 2018 meeting

@grorg

grorg commented Dec 10, 2018

Copy link
Copy Markdown
Contributor

Approved at that meeting.

@kdashg
kdashg merged commit 809b8a8 into gpuweb:master Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants