Skip to content

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.

@AWoloszyn AWoloszyn requested review from ben-clayton and qining April 24, 2018 19:11
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
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
Contributor

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.

3 participants