From e473fa91ec575b0a180d766bc29554db8861508e Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 8 Feb 2025 21:52:32 +1100 Subject: device get swap width and height --- video.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'video.cpp') diff --git a/video.cpp b/video.cpp index 82dd0f7..7287985 100644 --- a/video.cpp +++ b/video.cpp @@ -3863,6 +3863,16 @@ void Device::destroy_sampleri(Sampler_Id id) { s.destroy(dev); } +int Device::swap_w() { + Device_Vk* dev = (Device_Vk*)this; + return (int)dev->swapchain.size.width; +} + +int Device::swap_h() { + Device_Vk* dev = (Device_Vk*)this; + return (int)dev->swapchain.size.height; +} + void Shader_Loader::init(Device_Vk* d) { dev = d; } -- cgit v1.2.3-54-g00ecf