Engine/src/Graphics/DX12/ShaderSignatureDX12.cpp
/**
 * Delete the heap allocated memory for the root signature description.
 */
Delete the heap allocated memory for the root signature description.
Delete the heap allocated memory for the root signature description .
void DeleteRootSignatureDescription( const D3D12_ROOT_SIGNATURE_DESC& rootSignature )
{
    for ( unsigned int i = 0; i < rootSignature.NumParameters; ++i )
    {
        const D3D12_ROOT_PARAMETER& rootParameter = rootSignature.pParameters[i];
        if ( rootParameter.ParameterType == D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE )
        {
            delete [] rootParameter.DescriptorTable.pDescriptorRanges;
        }
    }
    delete [] rootSignature.pParameters;
    delete [] rootSignature.pStaticSamplers;
}
void DeleteRootSignatureDescription ( const D3D12_ROOT_SIGNATURE_DESC & rootSignature ) { for ( unsigned int i = 0 ; i < rootSignature . NumParameters ; ++ i ) { const D3D12_ROOT_PARAMETER & rootParameter = rootSignature . pParameters [ i ] ; if ( rootParameter . ParameterType == D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE ) { delete [ ] rootParameter . DescriptorTable . pDescriptorRanges ; } } delete [ ] rootSignature . pParameters ; delete [ ] rootSignature . pStaticSamplers ; }
Delete the heap allocated memory for the root signature description.
Delete the heap allocated memory for the root signature description .