Skip to content
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

Update to read_framebuffer to allow compute presentation. #1833

Merged
merged 1 commit into from Apr 27, 2018

Conversation

AWoloszyn
Copy link
Contributor

This does 2 things, first it allows us to copy out an image from a Vulkan compute queue.

Secondly it allows us to choose to not resize the images in the server. This is primarily so that the client can resample how it chooses rather than forcing us to do a software resize in GAPIS.


requestWidth := reqWidth
requestHeight := reqHeight

// Rendered image should always has a graphics-capable queue bound, if none
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is stale.

@Qining
Copy link
Contributor

Qining commented Apr 24, 2018

Vulkan side looks good to me.

gapis/api/api.go Outdated
@@ -46,7 +46,7 @@ type API interface {
after []uint64,
state *GlobalState,
thread uint64,
attachment FramebufferAttachment) (width, height, index uint32, format *image.Format, err error)
attachment FramebufferAttachment) (width, height, index uint32, format *image.Format, canResize bool, err error)
Copy link
Member

Choose a reason for hiding this comment

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

There comes a point where a struct is preferred over N return values 😃. I suggest declaring a FramebufferAttachmentInfo struct in this file with Width, Height, Index, Format and CanResize fields.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

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.

None yet

3 participants