#include <CommandListValidator.h>
Public Member Functions | |
void | BeginScope (const Scope &scope) |
bool | ValidateShaderResourceGroup (const ShaderResourceGroup &shaderResourceGroup, const ShaderResourceGroupBindingInfo &bindingInfo) const |
void | EndScope () |
Ends validation for the current scope. | |
This is a utility for validating that resources are in a correct state to be used for graphics / compute / copy operations on a command list. It does by crawling ShaderResourceGroups and checking that the Scope has properly declared the relevant pools and attachments.
void AZ::RHI::CommandListValidator::BeginScope | ( | const Scope & | scope | ) |
Begins validation of the provided scope. All validation calls must remain within a BeginScope EndScope block.
bool AZ::RHI::CommandListValidator::ValidateShaderResourceGroup | ( | const ShaderResourceGroup & | shaderResourceGroup, |
const ShaderResourceGroupBindingInfo & | bindingInfo | ||
) | const |
Validates that the shader resource group is usable on the current scope. Emits a warning otherwise and returns false.