fixed incorrect sampler params

This commit is contained in:
Dmitry Stepanov
2025-03-22 09:44:05 +03:00
parent 80172b7c4f
commit 5d78995cbb
2 changed files with 0 additions and 12 deletions
-4
View File
@@ -49,8 +49,6 @@ impl GlSampler {
t_wrap_mode,
r_wrap_mode,
anisotropy,
base_level,
max_level,
min_lod,
max_lod,
lod_bias,
@@ -61,8 +59,6 @@ impl GlSampler {
gl.sampler_parameter_f32(id, glow::TEXTURE_LOD_BIAS, lod_bias);
gl.sampler_parameter_f32(id, glow::TEXTURE_MIN_LOD, min_lod);
gl.sampler_parameter_f32(id, glow::TEXTURE_MAX_LOD, max_lod);
gl.sampler_parameter_i32(id, glow::TEXTURE_MAX_LEVEL, max_level as i32);
gl.sampler_parameter_i32(id, glow::TEXTURE_BASE_LEVEL, base_level as i32);
gl.sampler_parameter_f32(id, glow::TEXTURE_MAX_ANISOTROPY, anisotropy);
gl.sampler_parameter_i32(id, glow::TEXTURE_WRAP_S, s_wrap_mode.into_gl() as i32);
gl.sampler_parameter_i32(id, glow::TEXTURE_WRAP_T, t_wrap_mode.into_gl() as i32);
-8
View File
@@ -42,14 +42,6 @@ pub struct GpuSamplerDescriptor {
/// Anisotropy level of the texture. Default is 1.0. Max number is usually depends on the
/// GPU, but the cap is 16.0 on pretty much any platform. This number should be a power of two.
pub anisotropy: f32,
/// Specifies the index of the lowest defined mipmap level. Keep in mind, that the texture data
/// should provide the actual mip map level defined by the provided value, otherwise the
/// rendering will be incorrect (probably just black on majority of implementations) and glitchy.
pub base_level: usize,
/// Sets the index of the highest defined mipmap level. Keep in mind, that the texture data
/// should provide the actual mip map level defined by the provided value, otherwise the
/// rendering will be incorrect (probably just black on majority of implementations) and glitchy.
pub max_level: usize,
/// Sets the minimum level-of-detail parameter. This floating-point value limits the selection
/// of highest resolution mipmap (lowest mipmap level). The initial value is -1000.0.
pub min_lod: f32,