[flutter_tools] Add remap sampler support (#116861)
This commit is contained in:
@@ -186,6 +186,7 @@ class ShaderCompiler {
|
||||
'--spirv=$outputPath.spirv',
|
||||
'--input=${input.path}',
|
||||
'--input-type=frag',
|
||||
'--remap-samplers',
|
||||
'--include=${input.parent.path}',
|
||||
'--include=$shaderLibPath',
|
||||
];
|
||||
|
||||
@@ -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',
|
||||
],
|
||||
|
||||
@@ -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',
|
||||
]),
|
||||
|
||||
@@ -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',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user