Files
wgpu/tests/out/glsl/skybox.fs_main.Fragment.glsl
T
6035b07b78 [wgsl-in] Implement module-level scoping.
Fixes #1745: Support out-of-order module scope declarations in WGSL
Fixes #1044: Forbid local variable shadowing in WGSL
Fixes #2076: [wgsl-in] no error for duplicated type definition
Fixes #2071: Global item does not support 'const'
Fixes #2105: [wgsl-in] Type aliases for a vecN<T> doesn't work when constructing vec from a single argument
Fixes #1775: Referencing a function without a return type yields an unknown identifier error.
Fixes #2089: Error span reported on the declaration of a variable instead of its use
Fixes #1996: [wgsl-in] Confusing error: "expected unsigned/signed integer literal, found '1'"

Separate parsing from lowering by generating an AST, which desugars as
much as possible down to something like Naga IR. The AST is then used
to resolve identifiers while lowering to Naga IR.

Co-authored-by: Teodor Tanasoaia <28601907+teoxoy@users.noreply.github.com>
Co-authored-by: Jim Blandy <jimb@red-bean.com>
2023-01-12 09:37:08 -08:00

26 lines
532 B
GLSL

#version 320 es
precision highp float;
precision highp int;
struct VertexOutput {
vec4 position;
vec3 uv;
};
struct Data {
mat4x4 proj_inv;
mat4x4 view;
};
layout(binding = 0) uniform highp samplerCube _group_0_binding_1_fs;
layout(location = 0) smooth in vec3 _vs2fs_location0;
layout(location = 0) out vec4 _fs2p_location0;
void main() {
VertexOutput in_ = VertexOutput(gl_FragCoord, _vs2fs_location0);
vec4 _e4 = texture(_group_0_binding_1_fs, vec3(in_.uv));
_fs2p_location0 = _e4;
return;
}