Flutter Impeller
compute_pass_vk.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#pragma once
6
7
#include "flutter/fml/macros.h"
8
#include "
impeller/renderer/backend/vulkan/command_encoder_vk.h
"
9
#include "
impeller/renderer/compute_pass.h
"
10
11
namespace
impeller
{
12
13
class
CommandBufferVK;
14
15
class
ComputePassVK
final :
public
ComputePass
{
16
public
:
17
// |ComputePass|
18
~ComputePassVK
()
override
;
19
20
private
:
21
friend
class
CommandBufferVK
;
22
23
std::weak_ptr<CommandBufferVK> command_buffer_;
24
std::string label_;
25
bool
is_valid_ =
false
;
26
27
ComputePassVK
(std::weak_ptr<const Context> context,
28
std::weak_ptr<CommandBufferVK> command_buffer);
29
30
// |ComputePass|
31
bool
IsValid()
const override
;
32
33
// |ComputePass|
34
void
OnSetLabel(
const
std::string& label)
override
;
35
36
// |ComputePass|
37
bool
OnEncodeCommands(
const
Context
& context,
38
const
ISize
& grid_size,
39
const
ISize
& thread_group_size)
const override
;
40
};
41
42
}
// namespace impeller
command_encoder_vk.h
impeller::ComputePassVK::~ComputePassVK
~ComputePassVK() override
impeller::TSize< int64_t >
impeller::CommandBufferVK
Definition:
command_buffer_vk.h:18
impeller::Context
To do anything rendering related with Impeller, you need a context.
Definition:
context.h:47
compute_pass.h
impeller
Definition:
aiks_context.cc:10
impeller::ComputePassVK
Definition:
compute_pass_vk.h:15
impeller::ComputePass
Compute passes encode compute shader into the underlying command buffer.
Definition:
compute_pass.h:25
impeller
renderer
backend
vulkan
compute_pass_vk.h
Generated by
1.8.17