5#include "flutter/testing/testing.h"
6#include "gtest/gtest.h"
16 auto capabilities = mock_gles->GetProcTable().GetCapabilities();
18 EXPECT_FALSE(capabilities->SupportsOffscreenMSAA());
19 EXPECT_FALSE(capabilities->SupportsSSBO());
20 EXPECT_FALSE(capabilities->SupportsTextureToTextureBlits());
21 EXPECT_FALSE(capabilities->SupportsFramebufferFetch());
22 EXPECT_FALSE(capabilities->SupportsCompute());
23 EXPECT_FALSE(capabilities->SupportsComputeSubgroups());
24 EXPECT_FALSE(capabilities->SupportsReadFromResolve());
25 EXPECT_FALSE(capabilities->SupportsDecalSamplerAddressMode());
26 EXPECT_FALSE(capabilities->SupportsDeviceTransientTextures());
28 EXPECT_EQ(capabilities->GetDefaultColorFormat(),
31 EXPECT_EQ(capabilities->GetDefaultDepthStencilFormat(),
36 auto const extensions = std::vector<const unsigned char*>{
37 reinterpret_cast<const unsigned char*
>(
"GL_KHR_debug"),
38 reinterpret_cast<const unsigned char*
>(
"GL_EXT_texture_border_clamp"),
41 auto capabilities = mock_gles->GetProcTable().GetCapabilities();
42 EXPECT_TRUE(capabilities->SupportsDecalSamplerAddressMode());
46 auto const extensions = std::vector<const unsigned char*>{
47 reinterpret_cast<const unsigned char*
>(
"GL_KHR_debug"),
48 reinterpret_cast<const unsigned char*
>(
"GL_OES_texture_border_clamp"),
51 auto capabilities = mock_gles->GetProcTable().GetCapabilities();
52 EXPECT_FALSE(capabilities->SupportsDecalSamplerAddressMode());
56 auto const extensions = std::vector<const unsigned char*>{
57 reinterpret_cast<const unsigned char*
>(
"GL_KHR_debug"),
58 reinterpret_cast<const unsigned char*
>(
59 "GL_EXT_shader_framebuffer_fetch"),
62 auto capabilities = mock_gles->GetProcTable().GetCapabilities();
63 EXPECT_TRUE(capabilities->SupportsFramebufferFetch());
The Vulkan layers and extensions wrangler.
static std::shared_ptr< MockGLES > Init(const std::optional< std::vector< const unsigned char * > > &extensions=std::nullopt, const char *version_string="OpenGL ES 3.0", ProcTableGLES::Resolver resolver=kMockResolverGLES)
Returns an initialized |MockGLES| instance.
TEST(AiksCanvasTest, EmptyCullRect)
#define EXPECT_TRUE(handle)