Giovanni Mascellani (@giomasce) commented about tests/sample-bias.shader_test:
+[vertex shader] +void main(out float2 tex : texcoord, inout float4 pos : sv_position) +{
- tex = pos.xy;
+}
+[pixel shader] +sampler s; +Texture2D t; +uniform float bias;
+float4 main(float2 coord : texcoord) : sv_target +{
- /* Choice of initial mipmap level is hardware-dependent, and in practice
* varies too much to be reasonably covered by ULPS. Quantize instead. */
I think there is some bug in the preprocessor lexer with C-style comments, which causes random `\n` to be dumped to `stdout`. I suppose that's due to the default lex rule which is not properly overridden, but I'm not an expert and my naive attempts at fixing this didn't give the hoped for results. This shouldn't probably block this MR, but I guess that if somebody in the world can fix this bug, it's you.