mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
Update WGSL in tests with renamed builtins
These builtins have been renamed: * frag_coord -> position * sample_mask_in -> sample_mask * sample_mask_out -> sample_mask Change-Id: Ic40dc9f4e509587b7ac82e43abbf9eec68225d9f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/48300 Auto-Submit: James Price <jrprice@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
7f5a472258
commit
eae70b75ae
@@ -105,7 +105,7 @@ void init() {
|
||||
[[group(0), binding(0)]] var mySampler: sampler;
|
||||
[[group(0), binding(1)]] var myTexture : texture_2d<f32>;
|
||||
|
||||
[[stage(fragment)]] fn main([[builtin(frag_coord)]] FragCoord : vec4<f32>)
|
||||
[[stage(fragment)]] fn main([[builtin(position)]] FragCoord : vec4<f32>)
|
||||
-> [[location(0)]] vec4<f32> {
|
||||
return textureSample(myTexture, mySampler, FragCoord.xy / vec2<f32>(640.0, 480.0));
|
||||
})");
|
||||
|
||||
Reference in New Issue
Block a user