#include <pipelinekey.h>
Public Member Functions | |
| ComputePipelineKey (const ComputeShader &computeShader, ShaderConstantHash constantHash) | |
| bool | operator== (const ComputePipelineKey &rhs) const |
Public Attributes | |
| const ComputeShader * | mShader = nullptr |
| ShaderConstantHash | mConstantHash = 0 |
Key associated with a specific Vulkan compute pipeline. The render engine uses this key to cache Vulkan pipelines so they can be re-used at runtime. Pipeline creation is considered a heavy Vulkan operation, we therefore cache pipelines to speed up compute operations.
| ComputePipelineKey | ( | const ComputeShader & | computeShader, |
| ShaderConstantHash | constantHash | ||
| ) |
Creates the key based on the provided arguments.
| bool operator== | ( | const ComputePipelineKey & | rhs | ) | const |
| ShaderConstantHash mConstantHash = 0 |
| const ComputeShader* mShader = nullptr |