Add level value to textureLoad
The level-less variants have been removed from the WGSL spec, so will be removed from Tint soon. BUG=tint:516 Change-Id: Ic09ffadc2902ca9cdb3198b91f8ad694887258d4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/42704 Auto-Submit: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
6e5edc9a69
commit
8ed0630d35
|
@ -1060,7 +1060,7 @@ TEST_P(StorageTextureTests, SampledAndWriteonlyStorageTexturePingPong) {
|
|||
[[group(0), binding(0)]] var Src : texture_2d<u32>;
|
||||
[[group(0), binding(1)]] var Dst : [[access(write)]] texture_storage_2d<r32uint>;
|
||||
[[stage(compute)]] fn main() -> void {
|
||||
var srcValue : vec4<u32> = textureLoad(Src, vec2<i32>(0, 0));
|
||||
var srcValue : vec4<u32> = textureLoad(Src, vec2<i32>(0, 0), 0);
|
||||
srcValue.x = srcValue.x + 1u;
|
||||
textureStore(Dst, vec2<i32>(0, 0), srcValue);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue