summaryrefslogtreecommitdiff
path: root/video.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-09 22:53:40 +1100
committerquou <quou@disroot.org>2025-01-09 22:53:40 +1100
commit622e634e1cfd55dd875979a1f109a804d3dbe7ee (patch)
treed71ec2ff776221189a006b5ffc3a0ac78f3c664a /video.cpp
parentb3363b1716fbbb2af1b33b9bdd7a13f72016283d (diff)
mipmap the environment probe
Diffstat (limited to 'video.cpp')
-rw-r--r--video.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/video.cpp b/video.cpp
index a0bbc2c..29afc6e 100644
--- a/video.cpp
+++ b/video.cpp
@@ -6,9 +6,9 @@
#define max_buffers 1024
#define max_vertex_formats 64
#define max_rpos 64
-#define max_fbos 64
+#define max_fbos 1024
#define max_pipelines 64
-#define max_descriptor_sets 64
+#define max_descriptor_sets 1024
#define max_shaders 32
#define max_samplers 16
@@ -4154,6 +4154,7 @@ void Sampler_Vk::init(Device_Vk* dev, const Sampler_State& s) {
si.addressModeV = get_mode(s.address_v);
si.addressModeW = get_mode(s.address_w);
si.borderColor = VK_BORDER_COLOR_FLOAT_CUSTOM_EXT;
+ si.maxLod = VK_LOD_CLAMP_NONE;
si.pNext = &bi;
bi.sType = VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT;
bi.customBorderColor = col;