mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 14:13:39 +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>
25 lines
480 B
WebGPU Shading Language
25 lines
480 B
WebGPU Shading Language
@group(1) @binding(0) var arg_0 : texture_cube_array<u32>;
|
|
|
|
fn textureNumLayers_c1eca9() {
|
|
var res : u32 = textureNumLayers(arg_0);
|
|
prevent_dce = res;
|
|
}
|
|
|
|
@group(2) @binding(0) var<storage, read_write> prevent_dce : u32;
|
|
|
|
@vertex
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
textureNumLayers_c1eca9();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@fragment
|
|
fn fragment_main() {
|
|
textureNumLayers_c1eca9();
|
|
}
|
|
|
|
@compute @workgroup_size(1)
|
|
fn compute_main() {
|
|
textureNumLayers_c1eca9();
|
|
}
|