[flutter_tools] configure shader compiler to output GLES3 shaders for Android. (#159857)
Required changes for https://github.com/flutter/engine/pull/56960 This configures an additional shader target for Android devices.
This commit is contained in:
parent
bb7d007b51
commit
e1c09f408c
@ -115,7 +115,7 @@ class ShaderCompiler {
|
||||
case TargetPlatform.linux_arm64:
|
||||
case TargetPlatform.windows_x64:
|
||||
case TargetPlatform.windows_arm64:
|
||||
return <String>['--sksl', '--runtime-stage-gles', '--runtime-stage-vulkan'];
|
||||
return <String>['--sksl', '--runtime-stage-gles', '--runtime-stage-gles3', '--runtime-stage-vulkan'];
|
||||
|
||||
case TargetPlatform.ios:
|
||||
case TargetPlatform.darwin:
|
||||
|
@ -774,6 +774,7 @@ flutter:
|
||||
impellerc,
|
||||
'--sksl',
|
||||
'--runtime-stage-gles',
|
||||
'--runtime-stage-gles3',
|
||||
'--runtime-stage-vulkan',
|
||||
'--iplr',
|
||||
'--sl=$outputPath',
|
||||
|
@ -543,6 +543,7 @@ void main() {
|
||||
'HostArtifact.impellerc',
|
||||
'--sksl',
|
||||
'--runtime-stage-gles',
|
||||
'--runtime-stage-gles3',
|
||||
'--runtime-stage-vulkan',
|
||||
'--iplr',
|
||||
'--sl=out/flutter_assets/shader.glsl',
|
||||
|
@ -124,6 +124,7 @@ void main() {
|
||||
impellerc,
|
||||
'--sksl',
|
||||
'--runtime-stage-gles',
|
||||
'--runtime-stage-gles3',
|
||||
'--runtime-stage-vulkan',
|
||||
'--iplr',
|
||||
'--sl=$outputPath',
|
||||
@ -245,6 +246,7 @@ void main() {
|
||||
impellerc,
|
||||
'--sksl',
|
||||
'--runtime-stage-gles',
|
||||
'--runtime-stage-gles3',
|
||||
'--runtime-stage-vulkan',
|
||||
'--iplr',
|
||||
'--sl=/.tmp_rand0/0.8255140718871702.temp',
|
||||
@ -337,6 +339,7 @@ void main() {
|
||||
impellerc,
|
||||
'--sksl',
|
||||
'--runtime-stage-gles',
|
||||
'--runtime-stage-gles3',
|
||||
'--runtime-stage-vulkan',
|
||||
'--iplr',
|
||||
'--sl=/.tmp_rand0/0.8255140718871702.temp',
|
||||
@ -429,6 +432,7 @@ void main() {
|
||||
impellerc,
|
||||
'--sksl',
|
||||
'--runtime-stage-gles',
|
||||
'--runtime-stage-gles3',
|
||||
'--runtime-stage-vulkan',
|
||||
'--iplr',
|
||||
'--sl=/.tmp_rand0/0.8255140718871702.temp',
|
||||
|
Loading…
x
Reference in New Issue
Block a user