xref: /third_party/mesa3d/src/compiler/glsl/tests/warnings/025-function-parameters.vert
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/mesa3d/src/compiler/glsl/tests/warnings/
1bf215546Sopenharmony_ci#version 130
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_civoid foo(float normalVar, out float outVar, inout float inoutVar)
4bf215546Sopenharmony_ci{
5bf215546Sopenharmony_ci  outVar = 1.0f;
6bf215546Sopenharmony_ci}
7bf215546Sopenharmony_ci
8bf215546Sopenharmony_civoid main()
9bf215546Sopenharmony_ci{
10bf215546Sopenharmony_ci   float undefinedFloat;
11bf215546Sopenharmony_ci   float noRaise;
12bf215546Sopenharmony_ci   float undefinedFloat2;
13bf215546Sopenharmony_ci
14bf215546Sopenharmony_ci   foo(undefinedFloat, noRaise, undefinedFloat2);
15bf215546Sopenharmony_ci}
16bf215546Sopenharmony_ci
17

Indexes created Thu Nov 07 10:32:03 CST 2024