mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Remove usage of deprecated WGSL IO in perf/unit/whitebox tests
Also drive-by fixes some other deprecated constructs (const -> let, and a disabled test having ancient WGSL). Bug: dawn:755 Change-Id: I924dfbcbd0a7d0478f3e9b3766585751a0392499 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/47620 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
21bd02becf
commit
78d27e88de
@@ -71,17 +71,15 @@ class SubresourceTrackingPerf : public DawnPerfTestWithParams<SubresourceTrackin
|
||||
|
||||
utils::ComboRenderPipelineDescriptor2 pipelineDesc;
|
||||
pipelineDesc.vertex.module = utils::CreateShaderModule(device, R"(
|
||||
[[builtin(position)]] var<out> Position : vec4<f32>;
|
||||
[[stage(vertex)]] fn main() {
|
||||
Position = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
[[stage(vertex)]] fn main() -> [[builtin(position)]] vec4<f32> {
|
||||
return vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
)");
|
||||
pipelineDesc.cFragment.module = utils::CreateShaderModule(device, R"(
|
||||
[[location(0)]] var<out> FragColor : vec4<f32>;
|
||||
[[group(0), binding(0)]] var materials : texture_2d<f32>;
|
||||
[[stage(fragment)]] fn main() {
|
||||
const foo : vec2<i32> = textureDimensions(materials);
|
||||
FragColor = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
[[stage(fragment)]] fn main() -> [[location(0)]] vec4<f32> {
|
||||
let foo : vec2<i32> = textureDimensions(materials);
|
||||
return vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
)");
|
||||
mPipeline = device.CreateRenderPipeline2(&pipelineDesc);
|
||||
|
||||
Reference in New Issue
Block a user