-
Notifications
You must be signed in to change notification settings - Fork 184
Add aribitrary texture size handling to the capture example #348
Conversation
rukai
commented
Jun 4, 2020
- User can specify width + height via arguments.
- Defaults to (100, 200) when no arguments. Odd values chosen to make it more likely to pick up issues when testing.
- Converts from bgra as I believe that is the most commonly supported format for swapchains?
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.
Thank you, this is a clever idea to demonstrate handling of the bytes_per_row in this example.
Just have a few concerns before we land
e4478e5
to
51ce054
Compare
Thanks for feedback, should be all addressed now. |
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.
Nice! I think it's all set, and looks beautiful. Just one last thing to fix, and we are good.
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.
Looking good, a couple of comments focused on readability to beginners.
51ce054
to
a8c3068
Compare
ea43d93
to
309ee30
Compare
309ee30
to
f6123e4
Compare
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
bors r=me r=kvark
* Pass max_bind_count down into Binder. * Use the existing hub. * Remove accidental newline.
352: Fix compute pass resource binding r=kvark a=kvark Follow-up to gfx-rs#348 cc @grenlight @terrence2 Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>