
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).
52 lines
3.7 KiB
Plaintext
52 lines
3.7 KiB
Plaintext
vulkan.frag
|
|
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing.
|
|
ERROR: 0:14: 'sampler2D' : sampler-constructor requires two arguments
|
|
ERROR: 0:15: 'sampler2D' : sampler-constructor first argument must be a scalar textureXXX type
|
|
ERROR: 0:16: 'sampler2D' : sampler-constructor first argument must be a scalar textureXXX type
|
|
ERROR: 0:17: 'sampler2D' : sampler-constructor second argument must be a scalar type 'sampler'
|
|
ERROR: 0:18: 'sampler2D' : sampler-constructor second argument must be a scalar type 'sampler'
|
|
ERROR: 0:19: 'sampler2D' : sampler-constructor second argument must be a scalar type 'sampler'
|
|
ERROR: 0:21: 'sampler3D' : sampler-constructor cannot make an array of samplers
|
|
ERROR: 0:22: 'sampler2D' : sampler-constructor first argument must be a scalar textureXXX type
|
|
ERROR: 0:23: 'sampler2D' : sampler-constructor first argument must match type and dimensionality of constructor type
|
|
ERROR: 0:24: 'sampler2D' : sampler-constructor second argument presence of shadow must match constructor presence of shadow
|
|
ERROR: 0:25: 'sampler2DShadow' : sampler-constructor second argument presence of shadow must match constructor presence of shadow
|
|
ERROR: 0:28: 'sampler2D' : sampler/image types can only be used in uniform variables or function parameters: s2D
|
|
ERROR: 0:29: 'sampler3D' : sampler-constructor cannot make an array of samplers
|
|
ERROR: 0:29: 'sampler3D' : sampler/image types can only be used in uniform variables or function parameters: s3d
|
|
ERROR: 0:29: '=' : cannot convert from 'const float' to 'global 4-element array of highp sampler3D'
|
|
ERROR: 0:39: 'push_constant' : can only be used with a uniform
|
|
ERROR: 0:43: 'non-opaque uniforms outside a block' : not allowed when using GLSL for Vulkan
|
|
ERROR: 0:43: 'push_constant' : can only be used with a block
|
|
ERROR: 0:45: 'push_constant' : cannot declare a default, can only be used on a block
|
|
ERROR: 0:47: 'push_constant' : requires an instance name
|
|
ERROR: 0:52: 'input_attachment_index' : can only be used with a subpass
|
|
ERROR: 0:53: 'input_attachment_index' : can only be used with a subpass
|
|
ERROR: 0:54: 'subpass' : requires an input_attachment_index layout qualifier
|
|
ERROR: 0:60: 'subpassLoadMS' : no matching overloaded function found
|
|
ERROR: 0:61: 'subpassLoad' : no matching overloaded function found
|
|
ERROR: 0:63: 'subpassLoadMS' : no matching overloaded function found
|
|
ERROR: 0:66: 'subroutine' : not allowed when generating SPIR-V
|
|
ERROR: 0:66: 'non-opaque uniforms outside a block' : not allowed when using GLSL for Vulkan
|
|
ERROR: 0:67: 'subroutine' : not allowed when generating SPIR-V
|
|
ERROR: 0:67: 'uniform' : no qualifiers allowed for function return
|
|
ERROR: 0:69: 'non-opaque uniforms outside a block' : not allowed when using GLSL for Vulkan
|
|
ERROR: 0:73: 'texture' : no matching overloaded function found
|
|
ERROR: 0:74: 'imageStore' : no matching overloaded function found
|
|
WARNING: 0:82: '' : all default precisions are highp; use precision statements to quiet warning, e.g.:
|
|
"precision mediump int; precision highp float;"
|
|
ERROR: 0:91: 'call argument' : sampler constructor must appear at point of use
|
|
ERROR: 0:92: 'call argument' : sampler constructor must appear at point of use
|
|
ERROR: 0:93: ',' : sampler constructor must appear at point of use
|
|
ERROR: 0:94: ':' : wrong operand types: no operation ':' exists that takes a left-hand operand of type 'temp sampler2D' and a right operand of type 'temp sampler2D' (or there is no acceptable conversion)
|
|
ERROR: 0:94: 'call argument' : sampler constructor must appear at point of use
|
|
ERROR: 38 compilation errors. No code generated.
|
|
|
|
|
|
|
|
Linked fragment stage:
|
|
|
|
ERROR: Linking fragment stage: Only one push_constant block is allowed per stage
|
|
|
|
SPIR-V is not generated for failed compile or link
|