-
Notifications
You must be signed in to change notification settings - Fork 255
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
[NUI] AddPrecompileShader() for precompile shader #6298
Conversation
Internal API ChangedAdded: 1, Removed: 0, Changed: 0Added+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.VisualFactory::AddPrecompileShader(Tizen.NUI.PropertyMap)
|
/// VisualFactory.Instance.UsePreCompiledShader(); | ||
/// | ||
/// <param name="option">The map contains the shader option for precompiling.</param> | ||
[EditorBrowsable(EditorBrowsableState.Never)] |
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.
If this method really needs the boolean return, could you leave a description about the return meaning as well?
Like,
[EditorBrowsable(EditorBrowsableState.Never)] | |
/// <return>True if the pre-compiled shader is added, otherwise false.</return> | |
[EditorBrowsable(EditorBrowsableState.Never)] |
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.
감사합니다.
리뷰 남겨주신대로 수정 완료했습니다 👍
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.
빠른 반영 감사합니다~
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.
(example)
PropertyMap imageShader = new PropertyMap();
imageShader.Add("shaderType", new PropertyValue("image"));
imageShader.Add("shaderOption", new PropertyValue(new PropertyMap().Add("ROUNDED_CORNER", new PropertyValue(true))
.Add("MASKING", new PropertyValue(true))));
PropertyMap textShader = new PropertyMap();
textShader.Add("shaderType", new PropertyValue("text"));
VisualFactory.Instance.AddPrecompileShader(imageShader);
VisualFactory.Instance.AddPrecompileShader(textShader);
VisualFactory.Instance.UsePreCompiledShader();
<param name="option">The map contains the shader option for precompiling.</param>
<return>True if the pre-compiled shader is added, otherwise false.</return>
Sample 까지 API에 첨부해주셔서 잘 이해가 됩니다 👍
큰 구현이었는데 수고많으셨습니다!
ea561c5
to
297df25
Compare
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.
사용 example과 자세한 description덕분에 사용성이 증가했네요 LGTM
Internal API ChangedAdded: 1, Removed: 0, Changed: 0Added+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.VisualFactory::AddPrecompileShader(Tizen.NUI.PropertyMap)
|
@taehyub, @Seoyeon2Kim , @hinohie |
Description of Change
shader precompile 시 원하는 옵션을 추가할 수 있는 기능입니다.
아래 패치들이 반영되어야 정상동작합니다.
Visual Factory Refactoring
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/315396/
Precompile option 추가 기능
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/316058/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/315273/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/316877/
[NUI] AddPrecompileShader() for precompile shader #6298
npatch shader 추가
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/316798/
CanclePrecompile 관련 버그 수정 패치
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/316966/
API Changes