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...
Public Member Functions | |
| ComputePassBindingsCache (id< MTLComputeCommandEncoder > encoder) | |
| ComputePassBindingsCache (const ComputePassBindingsCache &)=delete | |
| ComputePassBindingsCache (ComputePassBindingsCache &&)=delete | |
| void | SetComputePipelineState (id< MTLComputePipelineState > pipeline) |
| id< MTLComputePipelineState > | GetPipeline () const |
| 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 89 of file compute_pass_mtl.mm.
|
inlineexplicit |
Definition at line 90 of file compute_pass_mtl.mm.
|
delete |
|
delete |
|
inline |
Definition at line 105 of file compute_pass_mtl.mm.
|
inline |
|
inline |
Definition at line 97 of file compute_pass_mtl.mm.
|
inline |
|
inline |