mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Remove deprecated WGSL "-> void"
Bug: dawn:755 Change-Id: I10f2fb3afd26560df10b21d149a65b625bdb2b4b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/47600 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
71f3d58939
commit
21bd02becf
@@ -46,7 +46,7 @@ namespace dawn_native {
|
||||
[[builtin(position)]] var<out> Position : vec4<f32>;
|
||||
[[builtin(vertex_index)]] var<in> VertexIndex : u32;
|
||||
[[binding(0), group(0)]] var<uniform> uniforms : Uniforms;
|
||||
[[stage(vertex)]] fn main() -> void {
|
||||
[[stage(vertex)]] fn main() {
|
||||
Position = vec4<f32>((texcoord[VertexIndex] * 2.0 - vec2<f32>(1.0, 1.0)), 0.0, 1.0);
|
||||
|
||||
// Y component of scale is calculated by the copySizeHeight / textureHeight. Only
|
||||
@@ -76,7 +76,7 @@ namespace dawn_native {
|
||||
[[binding(2), group(0)]] var myTexture: texture_2d<f32>;
|
||||
[[location(0)]] var<in> v_texcoord : vec2<f32>;
|
||||
[[location(0)]] var<out> outputColor : vec4<f32>;
|
||||
[[stage(fragment)]] fn main() -> void {
|
||||
[[stage(fragment)]] fn main() {
|
||||
// Clamp the texcoord and discard the out-of-bound pixels.
|
||||
var clampedTexcoord : vec2<f32> =
|
||||
clamp(v_texcoord, vec2<f32>(0.0, 0.0), vec2<f32>(1.0, 1.0));
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace dawn_native {
|
||||
const sizeofTimestamp : u32 = 8u;
|
||||
|
||||
[[stage(compute), workgroup_size(8, 1, 1)]]
|
||||
fn main() -> void {
|
||||
fn main() {
|
||||
if (GlobalInvocationID.x >= params.count) { return; }
|
||||
|
||||
var index : u32 = GlobalInvocationID.x + params.offset / sizeofTimestamp;
|
||||
|
||||
@@ -664,7 +664,7 @@ namespace dawn_native { namespace d3d12 {
|
||||
// TODO(jiawei.shao@intel.com): move the resource lazy clearing inside the barrier tracking
|
||||
// for compute passes.
|
||||
auto PrepareResourcesForComputePass = [](CommandRecordingContext* commandContext,
|
||||
const PassResourceUsage& usages) -> void {
|
||||
const PassResourceUsage& usages) {
|
||||
for (size_t i = 0; i < usages.buffers.size(); ++i) {
|
||||
Buffer* buffer = ToBackend(usages.buffers[i]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user