Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RHI::CommandListValidator Class Reference

#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.
 

Detailed Description

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.

Member Function Documentation

◆ BeginScope()

void AZ::RHI::CommandListValidator::BeginScope ( const Scope scope)

Begins validation of the provided scope. All validation calls must remain within a BeginScope EndScope block.

◆ ValidateShaderResourceGroup()

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.


The documentation for this class was generated from the following file: