mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-14 03:11:29 +00:00
With this change, the backend sanitizers always run the MultiplanarExternalTexture transform. If the new option is enabled, it auto-generates bindings for this transform. This change also enables this auto-generation for the Tint commandline application, as well as for the fuzzers. Bug: chromium:1310623 Change-Id: I3c661c4753dc67c0212051d09024cbeda3939f8c Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/85542 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
26 lines
504 B
WebGPU Shading Language
26 lines
504 B
WebGPU Shading Language
@group(1) @binding(0) var arg_0 : texture_external;
|
|
|
|
fn textureLoad2d(texture : texture_external, coords : vec2<i32>) -> vec4<f32> {
|
|
return textureLoad(texture, coords);
|
|
}
|
|
|
|
fn doTextureLoad() {
|
|
var res : vec4<f32> = textureLoad2d(arg_0, vec2<i32>());
|
|
}
|
|
|
|
@stage(vertex)
|
|
fn vertex_main() -> @builtin(position) vec4<f32> {
|
|
doTextureLoad();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
@stage(fragment)
|
|
fn fragment_main() {
|
|
doTextureLoad();
|
|
}
|
|
|
|
@stage(compute) @workgroup_size(1)
|
|
fn compute_main() {
|
|
doTextureLoad();
|
|
}
|