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 25 of file compute_pass.h.
◆ ~ComputePass()
| impeller::ComputePass::~ComputePass |
( |
| ) |
|
|
virtualdefault |
◆ ComputePass()
| impeller::ComputePass::ComputePass |
( |
std::weak_ptr< const Context > |
context | ) |
|
|
explicitprotected |
◆ AddCommand()
Record a command for subsequent encoding to the underlying command buffer. No work is encoded into the command buffer at this time.
- Parameters
-
- Returns
- If the command was valid for subsequent commitment.
Definition at line 39 of file compute_pass.cc.
42 <<
"Attempted to add an invalid command to the compute pass.";
46 commands_.emplace_back(std::move(command));
References commands_, and VALIDATION_LOG.
◆ EncodeCommands()
| bool impeller::ComputePass::EncodeCommands |
( |
| ) |
const |
Encode the recorded commands to the underlying command buffer.
- Parameters
-
| transients_allocator | The transients allocator. |
- Returns
- If the commands were encoded to the underlying command buffer.
Definition at line 50 of file compute_pass.cc.
52 FML_DLOG(WARNING) <<
"Attempted to encode a compute pass with an empty "
53 "grid or thread group size.";
References context_, impeller::TSize< T >::IsEmpty(), and OnEncodeCommands().
◆ GetTransientsBuffer()
| HostBuffer & impeller::ComputePass::GetTransientsBuffer |
( |
| ) |
|
◆ IsValid()
| virtual bool impeller::ComputePass::IsValid |
( |
| ) |
const |
|
pure virtual |
◆ OnEncodeCommands()
| virtual bool impeller::ComputePass::OnEncodeCommands |
( |
const Context & |
context, |
|
|
const ISize & |
grid_size, |
|
|
const ISize & |
thread_group_size |
|
) |
| const |
|
protectedpure virtual |
◆ OnSetLabel()
| virtual void impeller::ComputePass::OnSetLabel |
( |
const std::string & |
label | ) |
|
|
protectedpure virtual |
◆ SetGridSize()
| void impeller::ComputePass::SetGridSize |
( |
const ISize & |
size | ) |
|
◆ SetLabel()
| void impeller::ComputePass::SetLabel |
( |
const std::string & |
label | ) |
|
◆ SetThreadGroupSize()
| void impeller::ComputePass::SetThreadGroupSize |
( |
const ISize & |
size | ) |
|
◆ commands_
◆ context_
| const std::weak_ptr<const Context> impeller::ComputePass::context_ |
|
protected |
The documentation for this class was generated from the following files: