Add using Tint for binding reflection

BUG=dawn:700

Change-Id: I5234d48867b500aece79b82515818afdfc3a6d9a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/45100
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Auto-Submit: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Ryan Harrison
2021-03-30 19:55:27 +00:00
committed by Commit Bot service account
parent 17941e1562
commit 1523d4cf18
3 changed files with 337 additions and 10 deletions

View File

@@ -130,6 +130,7 @@ TEST_P(BindGroupTests, ReusedBindGroupSingleSubmit) {
[[group(0), binding(0)]] var <uniform> contents: Contents;
[[stage(compute)]] fn main() -> void {
var f : f32 = contents.f;
})");
wgpu::ComputePipelineDescriptor cpDesc;

View File

@@ -80,6 +80,7 @@ class SubresourceTrackingPerf : public DawnPerfTestWithParams<SubresourceTrackin
[[location(0)]] var<out> FragColor : vec4<f32>;
[[group(0), binding(0)]] var materials : texture_2d<f32>;
[[stage(fragment)]] fn main() -> void {
textureDimensions(materials);
FragColor = vec4<f32>(1.0, 0.0, 0.0, 1.0);
}
)");