Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
84ed058b
Unverified
Commit
84ed058b
authored
Dec 12, 2022
by
Jonah Williams
Committed by
GitHub
Dec 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] Add remap sampler support (#116861)
parent
d1436d1d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
shader_compiler.dart
...r_tools/lib/src/build_system/targets/shader_compiler.dart
+1
-0
asset_bundle_test.dart
...s/flutter_tools/test/general.shard/asset_bundle_test.dart
+2
-0
ios_test.dart
...ols/test/general.shard/build_system/targets/ios_test.dart
+1
-0
shader_compiler_test.dart
...eral.shard/build_system/targets/shader_compiler_test.dart
+8
-0
No files found.
packages/flutter_tools/lib/src/build_system/targets/shader_compiler.dart
View file @
84ed058b
...
...
@@ -186,6 +186,7 @@ class ShaderCompiler {
'--spirv=
$outputPath
.spirv'
,
'--input=
${input.path}
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
${input.parent.path}
'
,
'--include=
$shaderLibPath
'
,
];
...
...
packages/flutter_tools/test/general.shard/asset_bundle_test.dart
View file @
84ed058b
...
...
@@ -453,6 +453,7 @@ flutter:
'--spirv=
$outputPath
.spirv'
,
'--input=/
$shaderPath
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=/
$assetsPath
'
,
'--include=
$shaderLibDir
'
,
],
...
...
@@ -541,6 +542,7 @@ flutter:
'--spirv=
${fileSystem.path.join(output.path, 'shaders', 'ink_sparkle.frag.spirv')}
'
,
'--input=
${fileSystem.path.join(materialDir.path, 'shaders', 'ink_sparkle.frag')}
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
${fileSystem.path.join(materialDir.path, 'shaders')}
'
,
'--include=
$shaderLibDir
'
,
],
...
...
packages/flutter_tools/test/general.shard/build_system/targets/ios_test.dart
View file @
84ed058b
...
...
@@ -262,6 +262,7 @@ void main() {
'--spirv=/App.framework/flutter_assets/shader.glsl.spirv'
,
'--input=/shader.glsl'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=/'
,
'--include=/./shader_lib'
,
]),
...
...
packages/flutter_tools/test/general.shard/build_system/targets/shader_compiler_test.dart
View file @
84ed058b
...
...
@@ -50,6 +50,7 @@ void main() {
'--spirv=
$outputSpirvPath
'
,
'--input=
$fragPath
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
$fragDir
'
,
'--include=
$shaderLibDir
'
,
],
...
...
@@ -90,6 +91,7 @@ void main() {
'--spirv=
$outputPath
.spirv'
,
'--input=
$fragPath
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
$fragDir
'
,
'--include=
$shaderLibDir
'
,
],
...
...
@@ -128,6 +130,7 @@ void main() {
'--spirv=
$outputPath
.spirv'
,
'--input=
$fragPath
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
$fragDir
'
,
'--include=
$shaderLibDir
'
,
],
...
...
@@ -166,6 +169,7 @@ void main() {
'--spirv=
$outputSpirvPath
'
,
'--input=
$notFragPath
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
$fragDir
'
,
'--include=
$shaderLibDir
'
,
],
...
...
@@ -206,6 +210,7 @@ void main() {
'--spirv=
$outputSpirvPath
'
,
'--input=
$notFragPath
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
$fragDir
'
,
'--include=
$shaderLibDir
'
,
],
...
...
@@ -248,6 +253,7 @@ void main() {
'--spirv=/.tmp_rand0/0.8255140718871702.temp.spirv'
,
'--input=
$fragPath
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
$fragDir
'
,
'--include=
$shaderLibDir
'
,
],
...
...
@@ -293,6 +299,7 @@ void main() {
'--spirv=/.tmp_rand0/0.8255140718871702.temp.spirv'
,
'--input=
$fragPath
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
$fragDir
'
,
'--include=
$shaderLibDir
'
,
],
...
...
@@ -339,6 +346,7 @@ void main() {
'--spirv=/.tmp_rand0/0.8255140718871702.temp.spirv'
,
'--input=
$fragPath
'
,
'--input-type=frag'
,
'--remap-samplers'
,
'--include=
$fragDir
'
,
'--include=
$shaderLibDir
'
,
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment