Skip to content

Swapchain and RenderSurface should provide methods to get their current extents #43

Description

@marti4d

Currently in Anvil, the Anvil::Swapchain doesn't record the width and height it was created with, and the Anvil::RenderSurface caches the values it was created with, but they can change when the window is resized, and it provides no way to determine the current dimensions.

This is a problem, because detecting whether the swapchain needs to be resized is a matter of getting the current extent of the rendering surface and comparing it to the extent of the swapchain.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions