Compute passes encode compute shader into the underlying command buffer.
More...
#include <compute_pass.h>
Compute passes encode compute shader into the underlying command buffer.
- See also
CommandBuffer
Definition at line 23 of file compute_pass.h.
◆ ~ComputePass()
impeller::ComputePass::~ComputePass |
( |
| ) |
|
|
virtualdefault |
◆ ComputePass()
impeller::ComputePass::ComputePass |
( |
std::shared_ptr< const Context > |
context | ) |
|
|
explicitprotected |
Definition at line 9 of file compute_pass.cc.
const std::shared_ptr< const Context > context_
◆ AddBufferMemoryBarrier()
virtual void impeller::ComputePass::AddBufferMemoryBarrier |
( |
| ) |
|
|
pure virtual |
Ensures all previously encoded compute command's buffer writes are visible to any subsequent compute commands.
On Vulkan, it does not matter if the compute command is in a different command buffer, only that it is executed later in queue order.
◆ AddTextureMemoryBarrier()
virtual void impeller::ComputePass::AddTextureMemoryBarrier |
( |
| ) |
|
|
pure virtual |
Ensures all previously encoded compute command's texture writes are visible to any subsequent compute commands.
On Vulkan, it does not matter if the compute command is in a different command buffer, only that it is executed later in queue order.
◆ Compute()
◆ EncodeCommands()
virtual bool impeller::ComputePass::EncodeCommands |
( |
| ) |
const |
|
pure virtual |
Encode the recorded commands to the underlying command buffer.
- Returns
- If the commands were encoded to the underlying command buffer.
◆ GetContext()
const Context & impeller::ComputePass::GetContext |
( |
| ) |
const |
|
inline |
◆ IsValid()
virtual bool impeller::ComputePass::IsValid |
( |
| ) |
const |
|
pure virtual |
◆ OnSetLabel()
virtual void impeller::ComputePass::OnSetLabel |
( |
const std::string & |
label | ) |
|
|
protectedpure virtual |
◆ SetCommandLabel()
virtual void impeller::ComputePass::SetCommandLabel |
( |
std::string_view |
label | ) |
|
|
pure virtual |
◆ SetLabel()
void impeller::ComputePass::SetLabel |
( |
const std::string & |
label | ) |
|
Definition at line 14 of file compute_pass.cc.
14 {
15 if (label.empty()) {
16 return;
17 }
19}
virtual void OnSetLabel(const std::string &label)=0
◆ SetPipeline()
◆ context_
const std::shared_ptr<const Context> impeller::ComputePass::context_ |
|
protected |
The documentation for this class was generated from the following files: