dawn-cmake/test/shader_io/fragment_input_builtins.wgsl.expected.glsl
Stephen White e2f35ba8e0 GLSL: clean up GLSL output whitespace generation.
More line() and less std::endl.
More automated indents and less manual spacing.
Put a single newline after every struct and function declaration.

Note that this does touch every test result, but only affects whitespace.

Change-Id: I7506b9029b79b91fb335911dba44369b36f09bbe
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78300
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-01-26 16:48:55 +00:00

45 lines
983 B
GLSL

SKIP: FAILED
#version 310 es
precision mediump float;
struct tint_symbol_2 {
vec4 position;
bool front_facing;
uint sample_index;
uint sample_mask;
};
void tint_symbol_inner(vec4 position, bool front_facing, uint sample_index, uint sample_mask) {
if (front_facing) {
vec4 foo = position;
uint bar = (sample_index + sample_mask);
}
}
void tint_symbol(tint_symbol_2 tint_symbol_1) {
tint_symbol_inner(tint_symbol_1.position, tint_symbol_1.front_facing, tint_symbol_1.sample_index, tint_symbol_1.sample_mask);
return;
}
void main() {
tint_symbol_2 inputs;
inputs.position = gl_FragCoord;
inputs.front_facing = gl_FrontFacing;
inputs.sample_index = uint(gl_SampleID);
inputs.sample_mask = uint(gl_SampleMask);
tint_symbol(inputs);
}
Error parsing GLSL shader:
ERROR: 0:31: 'gl_SampleID' : required extension not requested: GL_OES_sample_variables
ERROR: 0:31: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.