diff options
author | quou <quou@disroot.org> | 2025-01-09 22:53:40 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2025-01-09 22:53:40 +1100 |
commit | 622e634e1cfd55dd875979a1f109a804d3dbe7ee (patch) | |
tree | d71ec2ff776221189a006b5ffc3a0ac78f3c664a /video.cpp | |
parent | b3363b1716fbbb2af1b33b9bdd7a13f72016283d (diff) |
mipmap the environment probe
Diffstat (limited to 'video.cpp')
-rw-r--r-- | video.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |