File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -1332,10 +1332,18 @@ impl Interface {
1332
1332
if let Varying :: BuiltIn ( naga:: BuiltIn :: Position { invariant : false } ) = * output
1333
1333
{
1334
1334
log:: warn!(
1335
- "Vertex shader with entry point {entry_point_name} outputs a @builtin(position) without the @invariant \
1336
- attribute and is used in a pipeline with {cmp:?}. On some machines, this can cause bad artifacting as {cmp:?} assumes \
1337
- the values output from the vertex shader exactly match the value in the depth buffer. The @invariant attribute on the \
1338
- @builtin(position) vertex output ensures that the exact same pixel depths are used every render."
1335
+ concat!(
1336
+ "Vertex shader with entry point {} outputs a " ,
1337
+ "@builtin(position) without the @invariant attribute and " ,
1338
+ "is used in a pipeline with {cmp:?}. On some machines, " ,
1339
+ "this can cause bad artifacting as {cmp:?} assumes the " ,
1340
+ "values output from the vertex shader exactly match the " ,
1341
+ "value in the depth buffer. The @invariant attribute on the " ,
1342
+ "@builtin(position) vertex output ensures that the exact " ,
1343
+ "same pixel depths are used every render."
1344
+ ) ,
1345
+ entry_point_name,
1346
+ cmp = cmp
1339
1347
) ;
1340
1348
}
1341
1349
}
You can’t perform that action at this time.
0 commit comments