20 GTEST_SKIP() <<
"Test only applies to Vulkan";
23 auto allocator = std::make_shared<RenderTargetAllocator>(
24 GetContext()->GetResourceAllocator());
27 allocator->CreateOffscreenMSAA(*GetContext(), {100, 100}, 1);
28 std::shared_ptr<Texture> resolve_texture =
37 auto buffer = GetContext()->CreateCommandBuffer();
46 EXPECT_TRUE(GetContext()->GetCommandQueue()->Submit({
buffer}).ok());
49 auto buffer_2 = GetContext()->CreateCommandBuffer();
50 auto render_pass_2 = buffer_2->CreateRenderPass(render_target);
52 EXPECT_TRUE(render_pass_2->EncodeCommands());
53 EXPECT_TRUE(GetContext()->GetCommandQueue()->Submit({buffer_2}).ok());
58 GTEST_SKIP() <<
"Test only applies to Vulkan";
61 auto allocator = std::make_shared<RenderTargetAllocator>(
62 GetContext()->GetResourceAllocator());
65 allocator->CreateOffscreen(*GetContext(), {100, 100}, 1);
66 std::shared_ptr<Texture> color_texture =
75 auto buffer = GetContext()->CreateCommandBuffer();
84 EXPECT_TRUE(GetContext()->GetCommandQueue()->Submit({
buffer}).ok());
87 auto buffer_2 = GetContext()->CreateCommandBuffer();
88 auto render_pass_2 = buffer_2->CreateRenderPass(render_target);
90 EXPECT_TRUE(render_pass_2->EncodeCommands());
91 EXPECT_TRUE(GetContext()->GetCommandQueue()->Submit({buffer_2}).ok());
96 GTEST_SKIP() <<
"Test only applies to Vulkan";
99 auto allocator = std::make_shared<RenderTargetAllocator>(
100 GetContext()->GetResourceAllocator());
103 allocator->CreateOffscreenMSAA(*GetContext(), {100, 100}, 1);
104 std::shared_ptr<Texture> resolve_texture =
113 auto buffer = GetContext()->CreateCommandBuffer();
122 EXPECT_TRUE(GetContext()->GetCommandQueue()->Submit({
buffer}).ok());
125 auto buffer_2 = GetContext()->CreateCommandBuffer();
126 auto render_pass_2 = buffer_2->CreateRenderPass(render_target);
128 EXPECT_TRUE(render_pass_2->EncodeCommands());
129 EXPECT_TRUE(GetContext()->GetCommandQueue()->Submit({buffer_2}).ok());
137 color0.
texture = resolve_texture;
147 auto buffer_3 = GetContext()->CreateCommandBuffer();
148 auto render_pass_3 = buffer_3->CreateRenderPass(other_target);
155 EXPECT_TRUE(render_pass_3->EncodeCommands());
156 EXPECT_TRUE(GetContext()->GetCommandQueue()->Submit({buffer_3}).ok());
FramebufferAndRenderPass GetCachedFrameData(SampleCount sample_count, uint32_t mip_level=0u, uint32_t slice=0u) const