@@ -32,12 +32,12 @@ export namespace stormkit::gpu {
3232
3333 static auto create(const Device& device,
3434 const Surface& surface,
35- const math::Extent3 <u32>& extent,
35+ const math::Extent2 <u32>& extent,
3636 OptionalRef<SwapChain> old_swapchain = std::nullopt) noexcept
3737 -> Expected<SwapChain>;
3838 static auto allocate(const Device& device,
3939 const Surface& surface,
40- const math::Extent3 <u32>& extent,
40+ const math::Extent2 <u32>& extent,
4141 OptionalRef<SwapChain> old_swapchain = std::nullopt) noexcept
4242 -> Expected<Heap<SwapChain>>;
4343 ~SwapChain();
@@ -64,10 +64,10 @@ export namespace stormkit::gpu {
6464 private:
6565 auto do_init(const Device&,
6666 const Surface&,
67- const math::Extent3 <u32>&,
67+ const math::Extent2 <u32>&,
6868 VkSwapchainKHR) noexcept -> Expected<void>;
6969
70- math::Extent3 <u32> m_extent;
70+ math::Extent2 <u32> m_extent;
7171 PixelFormat m_pixel_format;
7272 u32 m_image_count;
7373
@@ -113,7 +113,7 @@ namespace stormkit::gpu {
113113 STORMKIT_FORCE_INLINE
114114 inline auto SwapChain::create(const Device& device,
115115 const Surface& surface,
116- const math::Extent3 <u32>& extent,
116+ const math::Extent2 <u32>& extent,
117117 OptionalRef<SwapChain> old_swapchain) noexcept
118118 -> Expected<SwapChain> {
119119 auto swapchain = SwapChain { device, PrivateFuncTag {} };
@@ -130,7 +130,7 @@ namespace stormkit::gpu {
130130 STORMKIT_FORCE_INLINE
131131 inline auto SwapChain::allocate(const Device& device,
132132 const Surface& surface,
133- const math::Extent3 <u32>& extent,
133+ const math::Extent2 <u32>& extent,
134134 OptionalRef<SwapChain> old_swapchain) noexcept
135135 -> Expected<Heap<SwapChain>> {
136136 auto swapchain = std::make_unique<SwapChain>(device, PrivateFuncTag {});
0 commit comments