Flutter Engine
The Flutter Engine
|
Ensures that bindings on the pass are not redundantly set or updated. Avoids making the driver do additional checks and makes the frame insights during profiling and instrumentation not complain about the same. More...
#include <compute_pass_bindings_cache_mtl.h>
Public Member Functions | |
ComputePassBindingsCacheMTL () | |
ComputePassBindingsCacheMTL (const ComputePassBindingsCacheMTL &)=delete | |
ComputePassBindingsCacheMTL (ComputePassBindingsCacheMTL &&)=delete | |
void | SetComputePipelineState (id< MTLComputePipelineState > pipeline) |
id< MTLComputePipelineState > | GetPipeline () const |
void | SetEncoder (id< MTLComputeCommandEncoder > encoder) |
void | SetBuffer (uint64_t index, uint64_t offset, id< MTLBuffer > buffer) |
void | SetTexture (uint64_t index, id< MTLTexture > texture) |
void | SetSampler (uint64_t index, id< MTLSamplerState > sampler) |
Ensures that bindings on the pass are not redundantly set or updated. Avoids making the driver do additional checks and makes the frame insights during profiling and instrumentation not complain about the same.
There should be no change to rendering if this caching was absent.
Definition at line 24 of file compute_pass_bindings_cache_mtl.h.
|
inlineexplicit |
Definition at line 25 of file compute_pass_bindings_cache_mtl.h.
|
delete |
|
delete |
id< MTLComputePipelineState > impeller::ComputePassBindingsCacheMTL::GetPipeline | ( | ) | const |
Definition at line 18 of file compute_pass_bindings_cache_mtl.mm.
void impeller::ComputePassBindingsCacheMTL::SetBuffer | ( | uint64_t | index, |
uint64_t | offset, | ||
id< MTLBuffer > | buffer | ||
) |
Definition at line 27 of file compute_pass_bindings_cache_mtl.mm.
void impeller::ComputePassBindingsCacheMTL::SetComputePipelineState | ( | id< MTLComputePipelineState > | pipeline | ) |
Definition at line 9 of file compute_pass_bindings_cache_mtl.mm.
void impeller::ComputePassBindingsCacheMTL::SetEncoder | ( | id< MTLComputeCommandEncoder > | encoder | ) |
Definition at line 22 of file compute_pass_bindings_cache_mtl.mm.
void impeller::ComputePassBindingsCacheMTL::SetSampler | ( | uint64_t | index, |
id< MTLSamplerState > | sampler | ||
) |
Definition at line 61 of file compute_pass_bindings_cache_mtl.mm.
void impeller::ComputePassBindingsCacheMTL::SetTexture | ( | uint64_t | index, |
id< MTLTexture > | texture | ||
) |
Definition at line 49 of file compute_pass_bindings_cache_mtl.mm.