mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Migrate spirv to nnbd (flutter/engine#26765)
This commit is contained in:
parent
706f45843c
commit
badba54900
@ -3,7 +3,6 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// This library defines a transpiler for converting SPIR-V into SkSL or GLSL.
|
||||
// @dart = 2.12
|
||||
library spirv;
|
||||
|
||||
import 'dart:convert';
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
// @dart = 2.12
|
||||
|
||||
part of spirv;
|
||||
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart = 2.12
|
||||
part of spirv;
|
||||
|
||||
/// The name of the fragment-coordinate parameter when generating SkSL.
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
// Copyright 2013 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
// @dart = 2.12
|
||||
|
||||
part of spirv;
|
||||
|
||||
|
||||
@ -6,4 +6,4 @@ name: spirv
|
||||
publish_to: none
|
||||
|
||||
environment:
|
||||
sdk: '>=2.11.0 <3.0.0'
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
|
||||
@ -28,4 +28,3 @@ def main():
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
@ -2,13 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// @dart = 2.6
|
||||
import 'dart:io';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:spirv/spirv.dart' as spirv;
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:litetest/litetest.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:spirv/spirv.dart' as spirv;
|
||||
|
||||
const List<spirv.TargetLanguage> targets = <spirv.TargetLanguage>[
|
||||
spirv.TargetLanguage.sksl,
|
||||
@ -53,4 +52,3 @@ Stream<Uint8List> exceptionShaders() async* {
|
||||
yield file.readAsBytesSync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user