Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
[flutter_tools] Add remap sampler support (#116861)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahwilliams committed Dec 12, 2022
1 parent d1436d1 commit 84ed058
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ class ShaderCompiler {
'--spirv=$outputPath.spirv',
'--input=${input.path}',
'--input-type=frag',
'--remap-samplers',
'--include=${input.parent.path}',
'--include=$shaderLibPath',
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ flutter:
'--spirv=$outputPath.spirv',
'--input=/$shaderPath',
'--input-type=frag',
'--remap-samplers',
'--include=/$assetsPath',
'--include=$shaderLibDir',
],
Expand Down Expand Up @@ -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',
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void main() {
'--spirv=$outputSpirvPath',
'--input=$fragPath',
'--input-type=frag',
'--remap-samplers',
'--include=$fragDir',
'--include=$shaderLibDir',
],
Expand Down Expand Up @@ -90,6 +91,7 @@ void main() {
'--spirv=$outputPath.spirv',
'--input=$fragPath',
'--input-type=frag',
'--remap-samplers',
'--include=$fragDir',
'--include=$shaderLibDir',
],
Expand Down Expand Up @@ -128,6 +130,7 @@ void main() {
'--spirv=$outputPath.spirv',
'--input=$fragPath',
'--input-type=frag',
'--remap-samplers',
'--include=$fragDir',
'--include=$shaderLibDir',
],
Expand Down Expand Up @@ -166,6 +169,7 @@ void main() {
'--spirv=$outputSpirvPath',
'--input=$notFragPath',
'--input-type=frag',
'--remap-samplers',
'--include=$fragDir',
'--include=$shaderLibDir',
],
Expand Down Expand Up @@ -206,6 +210,7 @@ void main() {
'--spirv=$outputSpirvPath',
'--input=$notFragPath',
'--input-type=frag',
'--remap-samplers',
'--include=$fragDir',
'--include=$shaderLibDir',
],
Expand Down Expand Up @@ -248,6 +253,7 @@ void main() {
'--spirv=/.tmp_rand0/0.8255140718871702.temp.spirv',
'--input=$fragPath',
'--input-type=frag',
'--remap-samplers',
'--include=$fragDir',
'--include=$shaderLibDir',
],
Expand Down Expand Up @@ -293,6 +299,7 @@ void main() {
'--spirv=/.tmp_rand0/0.8255140718871702.temp.spirv',
'--input=$fragPath',
'--input-type=frag',
'--remap-samplers',
'--include=$fragDir',
'--include=$shaderLibDir',
],
Expand Down Expand Up @@ -339,6 +346,7 @@ void main() {
'--spirv=/.tmp_rand0/0.8255140718871702.temp.spirv',
'--input=$fragPath',
'--input-type=frag',
'--remap-samplers',
'--include=$fragDir',
'--include=$shaderLibDir',
],
Expand Down

0 comments on commit 84ed058

Please sign in to comment.