summaryrefslogtreecommitdiff
path: root/video.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'video.cpp')
-rw-r--r--video.cpp10
1 files changed, 10 insertions, 0 deletions
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;
}