mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
Update Dawn tests to use group instead of set.
This Cl updates the WGSL used by Dawn to use the new `group` decoration instead of the deprecated `set` decoration. Change-Id: I145aaff7721dfafff986ddc429c9cdc9389c2110 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/38141 Auto-Submit: dan sinclair <dsinclair@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
e45593cb08
commit
0f9c2d7b78
@@ -45,7 +45,7 @@ namespace dawn_native {
|
||||
[[location(0)]] var<out> v_texcoord: vec2<f32>;
|
||||
[[builtin(position)]] var<out> Position : vec4<f32>;
|
||||
[[builtin(vertex_idx)]] var<in> VertexIndex : u32;
|
||||
[[binding(0), set(0)]] var<uniform> uniforms : Uniforms;
|
||||
[[binding(0), group(0)]] var<uniform> uniforms : Uniforms;
|
||||
[[stage(vertex)]] fn main() -> void {
|
||||
Position = vec4<f32>((texcoord[VertexIndex] * 2.0 - vec2<f32>(1.0, 1.0)), 0.0, 1.0);
|
||||
|
||||
@@ -57,8 +57,8 @@ namespace dawn_native {
|
||||
)";
|
||||
|
||||
static const char sPassthrough2D4ChannelFrag[] = R"(
|
||||
[[binding(1), set(0)]] var<uniform_constant> mySampler: sampler;
|
||||
[[binding(2), set(0)]] var<uniform_constant> myTexture: texture_2d<f32>;
|
||||
[[binding(1), group(0)]] var<uniform_constant> mySampler: sampler;
|
||||
[[binding(2), group(0)]] var<uniform_constant> myTexture: texture_2d<f32>;
|
||||
[[location(0)]] var<in> v_texcoord : vec2<f32>;
|
||||
[[location(0)]] var<out> rgbaColor : vec4<f32>;
|
||||
[[stage(fragment)]] fn main() -> void {
|
||||
|
||||
@@ -52,11 +52,11 @@ namespace dawn_native {
|
||||
[[offset(8)]] period : f32;
|
||||
};
|
||||
|
||||
[[set(0), binding(0)]]
|
||||
[[group(0), binding(0)]]
|
||||
var<storage_buffer> timestamps : [[access(read_write)]] TimestampArr;
|
||||
[[set(0), binding(1)]]
|
||||
[[group(0), binding(1)]]
|
||||
var<storage_buffer> availability : [[access(read)]] AvailabilityArr;
|
||||
[[set(0), binding(2)]] var<uniform> params : TimestampParams;
|
||||
[[group(0), binding(2)]] var<uniform> params : TimestampParams;
|
||||
|
||||
[[builtin(global_invocation_id)]] var<in> GlobalInvocationID : vec3<u32>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user