mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 20:21:23 +00:00
... overloads for texture cube arrays FXC is telling porkies, when it says "The array element count of GetDimensions on TextureCubeArray objects is unavailable on ps_5_1". The actual issue, as identified by Teodor Tanasoaia at Mozilla, is that the argument needs to be unsigned. In fact, *all* the texture queries should have used an unsigned scalar or vector for the output value. This has been broken forever! This reverts commit bd9f6e66842ed986dfff3264326bb385d467c5f3. Change-Id: I3e217bec17c6fd203cff618b143ebef3d8a61927 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122980 Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
76 lines
1.5 KiB
GLSL
76 lines
1.5 KiB
GLSL
SKIP: FAILED
|
|
|
|
#version 310 es
|
|
|
|
uniform highp usamplerCubeArray arg_0_1;
|
|
void textureNumLayers_c1eca9() {
|
|
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
}
|
|
|
|
vec4 vertex_main() {
|
|
textureNumLayers_c1eca9();
|
|
return vec4(0.0f);
|
|
}
|
|
|
|
void main() {
|
|
gl_PointSize = 1.0;
|
|
vec4 inner_result = vertex_main();
|
|
gl_Position = inner_result;
|
|
gl_Position.y = -(gl_Position.y);
|
|
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
return;
|
|
}
|
|
Error parsing GLSL shader:
|
|
ERROR: 0:3: 'usamplerCubeArray' : Reserved word.
|
|
ERROR: 0:3: '' : compilation terminated
|
|
ERROR: 2 compilation errors. No code generated.
|
|
|
|
|
|
|
|
#version 310 es
|
|
precision mediump float;
|
|
|
|
uniform highp usamplerCubeArray arg_0_1;
|
|
void textureNumLayers_c1eca9() {
|
|
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
}
|
|
|
|
void fragment_main() {
|
|
textureNumLayers_c1eca9();
|
|
}
|
|
|
|
void main() {
|
|
fragment_main();
|
|
return;
|
|
}
|
|
Error parsing GLSL shader:
|
|
ERROR: 0:4: 'usamplerCubeArray' : Reserved word.
|
|
ERROR: 0:4: '' : compilation terminated
|
|
ERROR: 2 compilation errors. No code generated.
|
|
|
|
|
|
|
|
#version 310 es
|
|
|
|
uniform highp usamplerCubeArray arg_0_1;
|
|
void textureNumLayers_c1eca9() {
|
|
uint res = uint(textureSize(arg_0_1, 0).z);
|
|
}
|
|
|
|
void compute_main() {
|
|
textureNumLayers_c1eca9();
|
|
}
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void main() {
|
|
compute_main();
|
|
return;
|
|
}
|
|
Error parsing GLSL shader:
|
|
ERROR: 0:3: 'usamplerCubeArray' : Reserved word.
|
|
ERROR: 0:3: '' : compilation terminated
|
|
ERROR: 2 compilation errors. No code generated.
|
|
|
|
|
|
|