5#include "gtest/gtest.h"
22 auto cmd_buffer = context->CreateCommandBuffer();
23 auto blit_pass = cmd_buffer->CreateBlitPass();
27 src_desc.
size = {100, 100};
29 auto src = context->GetResourceAllocator()->CreateTexture(src_desc);
33 dst_format.
size = {100, 100};
35 auto dst = context->GetResourceAllocator()->CreateTexture(dst_format);
37 EXPECT_FALSE(blit_pass->AddCopy(
src,
dst));
43 auto cmd_buffer = context->CreateCommandBuffer();
44 auto blit_pass = cmd_buffer->CreateBlitPass();
49 src_desc.
size = {100, 100};
50 auto src = context->GetResourceAllocator()->CreateTexture(src_desc);
54 dst_format.
size = {100, 100};
55 auto dst = context->GetResourceAllocator()->CreateTexture(dst_format);
57 EXPECT_FALSE(blit_pass->AddCopy(
src,
dst));
63 auto cmd_buffer = context->CreateCommandBuffer();
64 auto blit_pass = cmd_buffer->CreateBlitPass();
68 src_desc.
size = {100, 100};
70 auto src = context->GetResourceAllocator()->CreateTexture(src_desc);
74 dst_format.
size = {100, 100};
76 auto dst = context->GetResourceAllocator()->CreateTexture(dst_format);
84 auto cmd_buffer = context->CreateCommandBuffer();
85 auto blit_pass = cmd_buffer->CreateBlitPass();
90 dst_format.
size = {100, 100};
91 auto dst = context->GetResourceAllocator()->CreateTexture(dst_format);
94 src_format.
size = 40000;
96 auto src = context->GetResourceAllocator()->CreateBuffer(src_format);
102 std::nullopt,
"", 25));
104 std::nullopt,
"", 6));
106 std::nullopt,
"", 0));
111 auto cmd_buffer = context->CreateCommandBuffer();
112 auto blit_pass = cmd_buffer->CreateBlitPass();
117 dst_format.
size = {1000, 1000};
118 auto dst = context->GetResourceAllocator()->CreateTexture(dst_format);
123 auto src = context->GetResourceAllocator()->CreateBuffer(src_format);
130 EXPECT_TRUE(context->GetCommandQueue()->Submit({std::move(cmd_buffer)}).ok());
static BufferView AsBufferView(std::shared_ptr< DeviceBuffer > buffer)
Create a buffer view of this entire buffer.
SK_API GrDirectContext * GetContext(const SkImage *src)
INSTANTIATE_PLAYGROUND_SUITE(AiksTest)
TEST_P(AiksTest, CanRenderAdvancedBlendColorFilterWithSaveLayer)
static constexpr TRect MakeLTRB(Type left, Type top, Type right, Type bottom)
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...
#define EXPECT_TRUE(handle)