5 Mar
2024
5 Mar
'24
11:18 a.m.
Giovanni Mascellani (@giomasce) commented about tests/shader_runner_gl.c:
glSamplerParameteri(id, GL_TEXTURE_WRAP_R, get_texture_wrap_gl(sampler->w_address)); glSamplerParameteri(id, GL_TEXTURE_MAG_FILTER, get_texture_filter_mag_gl(sampler->filter)); glSamplerParameteri(id, GL_TEXTURE_MIN_FILTER, get_texture_filter_min_gl(sampler->filter)); + if (sampler->func) + { + glSamplerParameteri(id, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_REF_TO_TEXTURE); + glSamplerParameteri(id, GL_TEXTURE_COMPARE_FUNC, gl_compare_op_from_d3d12(sampler->func)); + }
Does this make sense, given that we don't advertise the capability? -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/673#note_63511