result code = -1 standard error = { tests/diagnostics/constexpr-error.slang(27): error 40006: expected a compile-time constant result += t.Sample(s, uv, offset); ^~~~~~ tests/diagnostics/constexpr-error.slang(35): error 40006: expected a compile-time constant result += t.Sample(s, uv, int2(ii)); ^ tests/diagnostics/constexpr-error.slang(39): error 40006: expected a compile-time constant for(uint jj = 0; jj < uv.y; jj++) ^~ tests/diagnostics/constexpr-error.slang(41): error 40006: expected a compile-time constant result += t.Sample(s, uv, int2(jj)); ^ tests/diagnostics/constexpr-error.slang(39): error 40006: expected a compile-time constant for(uint jj = 0; jj < uv.y; jj++) ^~ } standard output = { }