Skip to content

Commit

Permalink
Support Vulkan on Android
Browse files Browse the repository at this point in the history
Since atmoic support isn't guaranteed on Vulkan, add a new PlatformFeature called 'supportsFragmentShaderAtomics'.

Various bugfixes.

Download and package Vulkan validation layers with the android testing apk.

Start an android Vulkan runner that doesn't do diffing yet.

Diffs=
cc903ee02 Support Vulkan on Android (#7915)

Co-authored-by: Chris Dalton <[email protected]>
  • Loading branch information
csmartdalton and csmartdalton committed Aug 29, 2024
1 parent 504f418 commit fb4c788
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c7bb5eb5ae34e300171bc6e48e26216170b094c7
cc903ee0236a43b850488e029f270e5da23625b7
3 changes: 2 additions & 1 deletion wasm/src/bindings_webgl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ class WebGL2Renderer : public RiveRenderer
// Use MSAA if we were given a canvas with 'antialias: true'.
frameDescriptor.msaaSampleCount = m_renderTarget->sampleCount();
}
else if (!m_plsContext->platformFeatures().supportsPixelLocalStorage)
else if (!m_plsContext->platformFeatures().supportsRasterOrdering &&
!m_plsContext->platformFeatures().supportsFragmentShaderAtomics)
{
// Always use MSAA if we don't have WEBGL_shader_pixel_local_storage.
frameDescriptor.msaaSampleCount = 4;
Expand Down

0 comments on commit fb4c788

Please sign in to comment.