Home
last modified time | relevance | path

Searched refs:RGBA8 (Results 1 – 25 of 195) sorted by relevance

12345678

/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DColorStateTests.cpp51 RGBA8 color;
92 dawn::BindGroup MakeBindGroupForColors(std::array<RGBA8, N> colors) { in MakeBindGroupForColors() argument
110 void DoSingleSourceTest(RGBA8 base, const TriangleSpec& triangle, const RGBA8& expected) { in DoSingleSourceTest()
119 … pass.SetBindGroup(0, MakeBindGroupForColors(std::array<RGBA8, 1>({{base}})), 0, nullptr); in DoSingleSourceTest()
124 …pass.SetBindGroup(0, MakeBindGroupForColors(std::array<RGBA8, 1>({{triangle.color}})), 0, nullptr); in DoSingleSourceTest()
138 void CheckBlendOperation(RGBA8 base, in CheckBlendOperation()
140 std::vector<std::pair<RGBA8, RGBA8>> tests) { in CheckBlendOperation() argument
160 void CheckBlendFactor(RGBA8 base, in CheckBlendFactor()
165 std::vector<std::pair<TriangleSpec, RGBA8>> tests) { in CheckBlendFactor()
188 void CheckSrcBlendFactor(RGBA8 base, in CheckSrcBlendFactor()
[all …]
DScissorTests.cpp67 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 0, 0); in TEST_P()
68 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 0, 99); in TEST_P()
69 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 99, 0); in TEST_P()
70 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 99, 99); in TEST_P()
90 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 0, 0); in TEST_P()
91 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 0, 99); in TEST_P()
92 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 99, 0); in TEST_P()
93 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 99, 99); in TEST_P()
119 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 0, 0, 0), renderPass.color, kX - 1, kY - 1); in TEST_P()
120 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, kX, kY); in TEST_P()
[all …]
DDepthStencilStateTests.cpp95 RGBA8 color;
125 RGBA8 baseColor = RGBA8(255, 255, 255, 255); in CheckDepthCompareFunction()
126 RGBA8 lessColor = RGBA8(255, 0, 0, 255); in CheckDepthCompareFunction()
127 RGBA8 equalColor = RGBA8(0, 255, 0, 255); in CheckDepthCompareFunction()
128 RGBA8 greaterColor = RGBA8(0, 0, 255, 255); in CheckDepthCompareFunction()
173 RGBA8 baseColor = RGBA8(255, 255, 255, 255); in CheckStencilCompareFunction()
174 RGBA8 lessColor = RGBA8(255, 0, 0, 255); in CheckStencilCompareFunction()
175 RGBA8 equalColor = RGBA8(0, 255, 0, 255); in CheckStencilCompareFunction()
176 RGBA8 greaterColor = RGBA8(0, 0, 255, 255); in CheckStencilCompareFunction()
221 { baseState, RGBA8(255, 255, 255, 255), 0.f, initialStencil }, in CheckStencilOperation()
[all …]
DDrawIndexedIndirectTests.cpp81 RGBA8 bottomLeftExpected, in Test()
82 RGBA8 topRightExpected) { in Test()
107 RGBA8 filled(0, 255, 0, 255); in TEST_P()
108 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
129 RGBA8 filled(0, 255, 0, 255); in TEST_P()
130 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
151 RGBA8 filled(0, 255, 0, 255); in TEST_P()
152 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
DCullingTests.cpp93 constexpr RGBA8 kTopLeftColor = RGBA8(0, 0, 0, 255); in DoTest()
94 constexpr RGBA8 kBottomRightColor = RGBA8(3, 3, 0, 255); in DoTest()
95 constexpr RGBA8 kBackgroundColor = RGBA8(0, 0, 255, 255); in DoTest()
97 RGBA8 kCCWTriangleTopLeftColor = isCCWTriangleCulled ? kBackgroundColor : kTopLeftColor; in DoTest()
100 RGBA8 kCWTriangleBottomRightColor = in DoTest()
DSamplerTests.cpp97 const uint32_t rowPixels = kTextureRowPitchAlignment / sizeof(RGBA8); in SetUp()
98 RGBA8 data[rowPixels * 2]; in SetUp()
99 RGBA8 black(0, 0, 0, 255); in SetUp()
100 RGBA8 white(255, 255, 255, 255); in SetUp()
153 RGBA8 expectedU2(u.mExpected2, u.mExpected2, u.mExpected2, 255); in TestAddressModes()
154 RGBA8 expectedU3(u.mExpected3, u.mExpected3, u.mExpected3, 255); in TestAddressModes()
155 RGBA8 expectedV2(v.mExpected2, v.mExpected2, v.mExpected2, 255); in TestAddressModes()
156 RGBA8 expectedV3(v.mExpected3, v.mExpected3, v.mExpected3, 255); in TestAddressModes()
157 RGBA8 black(0, 0, 0, 255); in TestAddressModes()
158 RGBA8 white(255, 255, 255, 255); in TestAddressModes()
DDrawIndirectTests.cpp72 RGBA8 bottomLeftExpected, in Test()
73 RGBA8 topRightExpected) { in Test()
97 RGBA8 filled(0, 255, 0, 255); in TEST_P()
98 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
114 RGBA8 filled(0, 255, 0, 255); in TEST_P()
115 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
DDrawIndexedTests.cpp88 RGBA8 bottomLeftExpected, in Test()
89 RGBA8 topRightExpected) { in Test()
113 RGBA8 filled(0, 255, 0, 255); in TEST_P()
114 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
128 RGBA8 filled(0, 255, 0, 255); in TEST_P()
129 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DColorStateTests.cpp56 RGBA8 color;
95 wgpu::BindGroup MakeBindGroupForColors(std::array<RGBA8, N> colors) { in MakeBindGroupForColors() argument
114 void DoSingleSourceTest(RGBA8 base, const TriangleSpec& triangle, const RGBA8& expected) { in DoSingleSourceTest()
123 pass.SetBindGroup(0, MakeBindGroupForColors(std::array<RGBA8, 1>({{base}}))); in DoSingleSourceTest()
128 pass.SetBindGroup(0, MakeBindGroupForColors(std::array<RGBA8, 1>({{triangle.color}}))); in DoSingleSourceTest()
142 void CheckBlendOperation(RGBA8 base, in CheckBlendOperation()
144 std::vector<std::pair<RGBA8, RGBA8>> tests) { in CheckBlendOperation() argument
167 void CheckBlendFactor(RGBA8 base, in CheckBlendFactor()
172 std::vector<std::pair<TriangleSpec, RGBA8>> tests) { in CheckBlendFactor()
198 void CheckSrcBlendFactor(RGBA8 base, in CheckSrcBlendFactor()
[all …]
DDepthStencilStateTests.cpp91 RGBA8 color;
127 RGBA8 baseColor = RGBA8(255, 255, 255, 255); in CheckDepthCompareFunction()
128 RGBA8 lessColor = RGBA8(255, 0, 0, 255); in CheckDepthCompareFunction()
129 RGBA8 equalColor = RGBA8(0, 255, 0, 255); in CheckDepthCompareFunction()
130 RGBA8 greaterColor = RGBA8(0, 0, 255, 255); in CheckDepthCompareFunction()
181 RGBA8 baseColor = RGBA8(255, 255, 255, 255); in CheckStencilCompareFunction()
182 RGBA8 lessColor = RGBA8(255, 0, 0, 255); in CheckStencilCompareFunction()
183 RGBA8 equalColor = RGBA8(0, 255, 0, 255); in CheckStencilCompareFunction()
184 RGBA8 greaterColor = RGBA8(0, 0, 255, 255); in CheckStencilCompareFunction()
237 {baseState, RGBA8(255, 255, 255, 255), 0.f, initialStencil}, in CheckStencilOperation()
[all …]
DPrimitiveStateTests.cpp80 RGBA8 color;
88 void DoTest(const std::vector<TestSpec>& testParams, const RGBA8& expected) { in DoTest()
158 RGBA8(255, 0, 0, 255), /* color */ in TEST_P()
165 RGBA8(0, 255, 0, 255), /* color */ in TEST_P()
172 RGBA8(0, 255, 0, 255)); in TEST_P()
185 RGBA8(255, 0, 0, 255), /* color */ in TEST_P()
192 RGBA8(0, 255, 0, 255), /* color */ in TEST_P()
199 RGBA8(0, 255, 0, 255)); in TEST_P()
211 RGBA8(0, 255, 0, 255), /* color */ in TEST_P()
216 RGBA8(0, 255, 0, 255)); in TEST_P()
[all …]
DScissorTests.cpp66 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 0, 0); in TEST_P()
67 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 0, 99); in TEST_P()
68 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 99, 0); in TEST_P()
69 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 99, 99); in TEST_P()
95 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kZero, renderPass.color, kX - 1, kY - 1); in TEST_P()
96 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, kX, kY); in TEST_P()
98 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kZero, renderPass.color, kX + kW, kY + kH); in TEST_P()
99 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, kX + kW - 1, kY + kH - 1); in TEST_P()
120 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kZero, renderPass.color, 0, 0); in TEST_P()
121 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kZero, renderPass.color, 0, 1); in TEST_P()
[all …]
DDepthBiasTests.cpp316 std::vector<RGBA8> expected = { in TEST_P()
317 RGBA8::kRed, RGBA8::kRed, // in TEST_P()
318 RGBA8::kRed, RGBA8::kRed, // in TEST_P()
337 std::vector<RGBA8> zero = { in TEST_P()
338 RGBA8::kZero, RGBA8::kZero, // in TEST_P()
339 RGBA8::kZero, RGBA8::kZero, // in TEST_P()
352 std::vector<RGBA8> expected = { in TEST_P()
353 RGBA8::kRed, RGBA8::kRed, // in TEST_P()
354 RGBA8::kZero, RGBA8::kZero, // in TEST_P()
DIndexFormatTests.cpp94 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 100, 300); in TEST_P()
121 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 100, 300); in TEST_P()
153 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 100, 300); in TEST_P()
181 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 100, 300); in TEST_P()
211 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 100, 300); in TEST_P()
226 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, 100, 300); in TEST_P()
288 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 50, 350); // A in TEST_P()
289 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 350, 50); // B in TEST_P()
290 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kZero, renderPass.color, 198, 200); // C in TEST_P()
323 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, 50, 350); // A in TEST_P()
[all …]
DSamplerTests.cpp99 const uint32_t rowPixels = kTextureBytesPerRowAlignment / sizeof(RGBA8); in SetUp()
100 RGBA8 data[rowPixels * 2]; in SetUp()
101 data[0] = data[rowPixels + 1] = RGBA8::kBlack; in SetUp()
102 data[1] = data[rowPixels] = RGBA8::kWhite; in SetUp()
148 RGBA8 expectedU2(u.mExpected2, u.mExpected2, u.mExpected2, 255); in TestAddressModes()
149 RGBA8 expectedU3(u.mExpected3, u.mExpected3, u.mExpected3, 255); in TestAddressModes()
150 RGBA8 expectedV2(v.mExpected2, v.mExpected2, v.mExpected2, 255); in TestAddressModes()
151 RGBA8 expectedV3(v.mExpected3, v.mExpected3, v.mExpected3, 255); in TestAddressModes()
152 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kBlack, mRenderPass.color, 0, 0); in TestAddressModes()
153 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kWhite, mRenderPass.color, 0, 1); in TestAddressModes()
[all …]
DDrawIndexedTests.cpp83 RGBA8 bottomLeftExpected, in Test()
84 RGBA8 topRightExpected) { in Test()
92 RGBA8 bottomLeftExpected, in TestZeroSizedIndexBufferDraw()
93 RGBA8 topRightExpected) { in TestZeroSizedIndexBufferDraw()
105 RGBA8 bottomLeftExpected, in TestImplementation()
106 RGBA8 topRightExpected) { in TestImplementation()
127 RGBA8 filled(0, 255, 0, 255); in TEST_P()
128 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
143 RGBA8 filled(0, 255, 0, 255); in TEST_P()
144 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
DDrawIndexedIndirectTests.cpp97 void TestDraw(wgpu::CommandBuffer commands, RGBA8 bottomLeftExpected, RGBA8 topRightExpected) { in TestDraw()
107 RGBA8 bottomLeftExpected, in Test()
108 RGBA8 topRightExpected) { in Test()
123 RGBA8 filled(0, 255, 0, 255); in TEST_P()
124 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
150 RGBA8 filled(0, 255, 0, 255); in TEST_P()
151 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
179 RGBA8 filled(0, 255, 0, 255); in TEST_P()
180 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
200 RGBA8 filled(0, 255, 0, 255); in TEST_P()
[all …]
DCompressedTextureFormatTests.cpp202 const std::vector<RGBA8>& expected) { in VerifyCompressedTexturePixelValues()
251 std::vector<RGBA8> expectedData = GetExpectedData(noPaddingExtent3D); in VerifyTexture()
448 std::vector<RGBA8> GetExpectedData(const wgpu::Extent3D& testRegion) { in GetExpectedData()
452 constexpr RGBA8 kBCDarkRed(198, 0, 0, 255); in GetExpectedData()
453 constexpr RGBA8 kBCDarkGreen(0, 207, 0, 255); in GetExpectedData()
454 constexpr RGBA8 kBCDarkRedSRGB(144, 0, 0, 255); in GetExpectedData()
455 constexpr RGBA8 kBCDarkGreenSRGB(0, 159, 0, 255); in GetExpectedData()
457 constexpr RGBA8 kETC2DarkRed(204, 0, 0, 255); in GetExpectedData()
458 constexpr RGBA8 kETC2DarkGreen(0, 204, 0, 255); in GetExpectedData()
459 constexpr RGBA8 kETC2DarkRedSRGB(154, 0, 0, 255); in GetExpectedData()
[all …]
DCullingTests.cpp89 const RGBA8 kBackgroundColor = RGBA8::kBlue; in DoTest()
90 const RGBA8 kTopLeftColor = RGBA8::kBlack; in DoTest()
91 constexpr RGBA8 kBottomRightColor = RGBA8(3, 3, 0, 255); in DoTest()
93 RGBA8 kCCWTriangleTopLeftColor = isCCWTriangleCulled ? kBackgroundColor : kTopLeftColor; in DoTest()
96 RGBA8 kCWTriangleBottomRightColor = in DoTest()
DCopyTextureForBrowserTests.cpp72 static std::vector<RGBA8> GetTextureData(const utils::TextureDataCopyLayout& layout, in GetTextureData()
76 std::vector<RGBA8> textureData(layout.texelBlockCount); in GetTextureData()
87 textureData[sliceOffset + rowOffset + x] = RGBA8( in GetTextureData()
95 textureData[sliceOffset + rowOffset + x] = RGBA8( in GetTextureData()
103 RGBA8(static_cast<uint8_t>(alpha[x % 4]), in GetTextureData()
115 RGBA8(static_cast<uint8_t>(0), static_cast<uint8_t>(255), in GetTextureData()
411 std::vector<RGBA8> srcTextureArrayCopyData =
418 srcTextureArrayCopyData.size() * sizeof(RGBA8));
442 const std::vector<RGBA8> dstTextureArrayCopyData =
446 dstTextureArrayCopyData.size() * sizeof(RGBA8));
[all …]
DD3D12VideoViewsTests.cpp267 static constexpr std::array<RGBA8, 2> kYellowYUVColor = {RGBA8{210, 0, 0, 0xFF}, // Y
268 RGBA8{16, 146, 0, 0xFF}}; // UV
270 static constexpr std::array<RGBA8, 2> kWhiteYUVColor = {RGBA8{235, 0, 0, 0xFF}, // Y
271 RGBA8{128, 128, 0, 0xFF}}; // UV
273 static constexpr std::array<RGBA8, 2> kBlueYUVColor = {RGBA8{41, 0, 0, 0xFF}, // Y
274 RGBA8{240, 110, 0, 0xFF}}; // UV
276 static constexpr std::array<RGBA8, 2> kRedYUVColor = {RGBA8{81, 0, 0, 0xFF}, // Y
277 RGBA8{90, 240, 0, 0xFF}}; // UV
450 RGBA8 yellowYUV(kYellowYUVColor[kYUVLumaPlaneIndex].r, kYellowYUVColor[kYUVChromaPlaneIndex].r, in TEST_P()
454 RGBA8 redYUV(kRedYUVColor[kYUVLumaPlaneIndex].r, kRedYUVColor[kYUVChromaPlaneIndex].r, in TEST_P()
[all …]
DDrawIndirectTests.cpp68 RGBA8 bottomLeftExpected, in Test()
69 RGBA8 topRightExpected) { in Test()
92 RGBA8 filled(0, 255, 0, 255); in TEST_P()
93 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
109 RGBA8 filled(0, 255, 0, 255); in TEST_P()
110 RGBA8 notFilled(0, 0, 0, 0); in TEST_P()
DTextureSubresourceTests.cpp162 RGBA8 topRight = RGBA8::kBlack; in TEST_P()
163 RGBA8 bottomLeft = RGBA8::kRed; in TEST_P()
190 RGBA8 topRight = RGBA8::kBlack; in TEST_P()
191 RGBA8 bottomLeft = RGBA8::kRed; in TEST_P()
DSamplerFilterAnisotropicTests.cpp31 const std::array<RGBA8, 3> colors = {RGBA8::kRed, RGBA8::kGreen, RGBA8::kBlue};
114 const uint32_t rowPixels = kTextureBytesPerRowAlignment / sizeof(RGBA8); in InitTexture()
123 const RGBA8 color = colors[level]; in InitTexture()
125 std::vector<RGBA8> data(rowPixels * texHeight, color); in InitTexture()
127 device, data.data(), data.size() * sizeof(RGBA8), wgpu::BufferUsage::CopySrc); in InitTexture()
/third_party/flutter/skia/third_party/externals/dawn/src/tests/
DDawnTest.h38 AddTextureExpectation(__FILE__, __LINE__, texture, x, y, 1, 1, 0, 0, sizeof(RGBA8), \
39 new detail::ExpectEq<RGBA8>(expected))
43 sizeof(RGBA8), \
44 new detail::ExpectEq<RGBA8>(expected, (width) * (height)))
54 struct RGBA8 { struct
55 constexpr RGBA8() : RGBA8(0, 0, 0, 0) { in RGBA8() function
57 constexpr RGBA8(uint8_t r, uint8_t g, uint8_t b, uint8_t a) : r(r), g(g), b(b), a(a) { in RGBA8() argument
59 bool operator==(const RGBA8& other) const;
60 bool operator!=(const RGBA8& other) const;
64 std::ostream& operator<<(std::ostream& stream, const RGBA8& color); argument
[all …]

12345678