Fail gracefully when Metal encounters a geometry shader.
Change-Id: I452e52a87d89cefb5c21a0d9d57e9771f3038d73 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319783 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
This commit is contained in:
parent
1b6a43cf20
commit
3fabfc0bd1
@ -938,7 +938,8 @@ void MetalCodeGenerator::writeFunction(const FunctionDefinition& f) {
|
||||
this->write("vertex Outputs vertexMain");
|
||||
break;
|
||||
default:
|
||||
SkDEBUGFAIL("unsupported kind of program");
|
||||
fErrors.error(-1, "unsupported kind of program");
|
||||
return;
|
||||
}
|
||||
this->write("(Inputs _in [[stage_in]]");
|
||||
if (-1 != fUniformBuffer) {
|
||||
|
@ -1,3 +1,4 @@
|
||||
### Compilation failed:
|
||||
|
||||
unsupported kind of program
|
||||
error: 1: unsupported kind of program
|
||||
1 error
|
||||
|
@ -1,3 +1,4 @@
|
||||
### Compilation failed:
|
||||
|
||||
unsupported kind of program
|
||||
error: 1: unsupported kind of program
|
||||
1 error
|
||||
|
@ -1,3 +1,4 @@
|
||||
### Compilation failed:
|
||||
|
||||
unsupported kind of program
|
||||
error: 1: unsupported kind of program
|
||||
1 error
|
||||
|
@ -1,3 +1,4 @@
|
||||
### Compilation failed:
|
||||
|
||||
unsupported kind of program
|
||||
error: 1: unsupported kind of program
|
||||
1 error
|
||||
|
@ -1,3 +1,5 @@
|
||||
### Compilation failed:
|
||||
|
||||
unsupported kind of program
|
||||
error: 1: Metal uniforms must have 'layout(set=...)'
|
||||
error: 1: unsupported kind of program
|
||||
2 errors
|
||||
|
Loading…
Reference in New Issue
Block a user