| SKIP: FAILED |
| |
| <dawn>/test/tint/diagnostic_filtering/if_statement_attribute.wgsl:8:14 warning: 'dpdx' must only be called from uniform control flow |
| } else if (dpdx(1.0) > 0) { |
| ^^^^^^^^^ |
| |
| <dawn>/test/tint/diagnostic_filtering/if_statement_attribute.wgsl:7:3 note: control flow depends on possibly non-uniform value |
| if (x > 0) { |
| ^^ |
| |
| <dawn>/test/tint/diagnostic_filtering/if_statement_attribute.wgsl:7:7 note: user-defined input 'x' of 'main' may be non-uniform |
| if (x > 0) { |
| ^ |
| |
| #include <metal_stdlib> |
| using namespace metal; |
| |
| texture2d<float, access::sample> t; |
| sampler s; |
| fragment void tint_symbol(float x) { |
| if ((x > 0.0f)) { |
| } else { |
| if ((dfdx(1.0f) > 0.0f)) { |
| } |
| } |
| } |
| program_source:4:34: error: program scope variable must reside in constant address space |
| texture2d<float, access::sample> t; |
| ^ |
| program_source:5:1: error: constant sampler must be declared constexpr |
| sampler s; |
| ^ |
| constexpr |
| program_source:6:27: error: invalid type 'float' for input declaration in a fragment function |
| fragment void tint_symbol(float x) { |
| ^~~~~~~ |
| |