-
Notifications
You must be signed in to change notification settings - Fork 342
Add APIs to set viewport and scissor rect for render pass #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
2652952 to
f085176
Compare
|
@Kangz , @kainino0x , @kvark , @RafaelCintron , @litherum , PTAL when you have time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'm not sure we should include "spec language" in the IDL though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should bring this up on the call (documenting in IDL).
design/sketch.webidl
Outdated
| // The default viewport is (0.0, 0.0, w, h, 0.0, 1.0), where w and h are the dimensions of back buffer | ||
| void setViewport(float x, float y, float, width, float height, float minDepth, float maxDepth); | ||
|
|
||
| // The default scissor rectangle is (0, 0, w, h), where w and h are the demensions of back buffer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo "demensions"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks for your review, @kvark
|
@Richard-Yunchao please squash the commits |
6c3ad56 to
43b31fd
Compare
Done. I remember that we can merge multiple commits into one commit when we merge the pr. So I didn't squash the commits before, @kvark . If you prefer to squash commits into one commit, I will do that in future. |
|
@Richard-Yunchao you are right. I just got used to bad automerge bots that don't know how to squash :) |
|
Can you take a look? @kvark . Shall we remove the comments for these two functions in this pr? |
|
In the future we may want support for multiple viewports (e.g. for VR). We should keep that future direction in mind. |
design/sketch.webidl
Outdated
| void setStencilReference(u32 reference); | ||
|
|
||
| // The default viewport is (0.0, 0.0, w, h, 0.0, 1.0), where w and h are the dimensions of back buffer | ||
| void setViewport(float x, float y, float, width, float height, float minDepth, float maxDepth); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rouge comma (,) between float width. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in prep for merge. Thanks for finding this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
Approved in the 2018-12-03 meeting with the typo fix @frzi mentioned. |
|
Aaaand @kainino0x fixed it, nice! |
Yes. I also simply discussed with a few guys about multiple viewports for WebVR several days ago. In addition, I added this statement into section at the investigation issue for Viewport and scissor tests. Thanks for your reminder, @litherum. |
PTAL.
See the investigation about Viewport and Scissor Test at #120