-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Impeller] partially remove remap sampler support #39147
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -332,34 +332,6 @@ void main() async { | |
shader.dispose(); | ||
}); | ||
|
||
// This test can't rely on actual pixels rendered since it needs to run on a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the test on line 275 sufficient? Does that test need to have a sampler or two thrown in? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wouldn't apply either way, its not running on impeller or metal? |
||
// metal shader on iOS. instead parse the source code. | ||
test('impellerc orders samplers in metal shader according to declaration and not usage', () async { | ||
if (!Platform.isMacOS) { | ||
return; | ||
} | ||
final Directory directory = shaderDirectory('iplr-remap'); | ||
final String data = readAsStringLossy(File(path.join(directory.path, 'shader_with_samplers.frag.iplr'))); | ||
|
||
const String expected = 'texture2d<float> textureA [[texture(0)]],' | ||
' texture2d<float> textureB [[texture(1)]]'; | ||
|
||
expect(data, contains(expected)); | ||
}); | ||
|
||
test('impellerc orders samplers in metal shader according to declaration and not usage in glow', () async { | ||
if (!Platform.isMacOS) { | ||
return; | ||
} | ||
final Directory directory = shaderDirectory('iplr-remap'); | ||
final String data = readAsStringLossy(File(path.join(directory.path, 'glow_shader.frag.iplr'))); | ||
|
||
const String expected = 'texture2d<float> tInput [[texture(0)]], texture2d<float> tNoise [[texture(1)]], ' | ||
'sampler tInputSmplr [[sampler(0)]], sampler tNoiseSmplr [[sampler(1)]]'; | ||
|
||
expect(data, contains(expected)); | ||
}); | ||
|
||
// Test all supported GLSL ops. See lib/spirv/lib/src/constants.dart | ||
final Map<String, FragmentProgram> iplrSupportedGLSLOpShaders = await _loadShaderAssets( | ||
path.join('supported_glsl_op_shaders', 'iplr'), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't this always be true? Given that the type is
size_t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RIGHT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed