Front-end: Warn for likely missed change in default precisions.
This is part of the change to have desktop shaders respect precision qualifiers on Vulkan, but since the defaults are all highp, and that's different from ES fragment shaders, detect likely cases and warn about them (but being careful to not be too noisy if it's unlikely to be a problem).
This commit is contained in:
parent
54571c2519
commit
32c169dbdf
10 changed files with 682 additions and 610 deletions
|
|
@ -1,4 +1,7 @@
|
|||
spv.structAssignment.frag
|
||||
WARNING: 0:6: '' : all default precisions are highp; use precision statements to quiet warning, e.g.:
|
||||
"precision mediump int; precision highp float;"
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
|
|
@ -33,6 +36,10 @@ Linked fragment stage:
|
|||
Name 40 "samp2D"
|
||||
Name 44 "coord"
|
||||
Name 49 "foo"
|
||||
MemberDecorate 8(lunarStruct1) 0 RelaxedPrecision
|
||||
MemberDecorate 9(lunarStruct2) 0 RelaxedPrecision
|
||||
MemberDecorate 10(lunarStruct3) 1 RelaxedPrecision
|
||||
Decorate 16 RelaxedPrecision
|
||||
Decorate 40(samp2D) DescriptorSet 0
|
||||
Decorate 44(coord) RelaxedPrecision
|
||||
Decorate 45 RelaxedPrecision
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue