/*========================== begin_copyright_notice ============================

Copyright (C) 2020-2026 Intel Corporation

SPDX-License-Identifier: MIT

============================= end_copyright_notice ===========================*/

/*
@file ml_ddi_command_buffer.cpp

@brief Auto-generated file. Implements Metrics Library entry points
       for a given os / gen / api configuration.

DO NOT EDIT

Script file:        Tools/MetricsLibraryGenerator/generators/generate_umd.py
Script function:    generate_umd_ddi
Template:           Tools/MetricsLibraryGenerator/templates/ddi.h
*/

#include "ml_pch.h"
#include "ml_traits_include.h"
#include "ml_ddi_command_buffer.hpp"

//////////////////////////////////////////////////////////////////////////
/// @brief T is not available in this file.
//////////////////////////////////////////////////////////////////////////
#define T Traits

#if ML_ENABLE_XE_LP

#include "ml_traits_xe_lp.h"

//////////////////////////////////////////////////////////////////////////
/// @brief Instantiates functions for DdiCommandBuffer.
//////////////////////////////////////////////////////////////////////////
#if ML_ENABLE_OPENCL
namespace ML::XE_LP::OpenCL
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE_LP::OpenCL
#endif // ML_ENABLE_OPENCL

#if ML_ENABLE_ONEAPI
namespace ML::XE_LP::OneApi
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE_LP::OneApi
#endif // ML_ENABLE_ONEAPI

#endif // ML_ENABLE_XE_LP

#if ML_ENABLE_XE_HPG

#include "ml_traits_xe_hpg.h"

//////////////////////////////////////////////////////////////////////////
/// @brief Instantiates functions for DdiCommandBuffer.
//////////////////////////////////////////////////////////////////////////
#if ML_ENABLE_OPENCL
namespace ML::XE_HPG::OpenCL
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE_HPG::OpenCL
#endif // ML_ENABLE_OPENCL

#if ML_ENABLE_ONEAPI
namespace ML::XE_HPG::OneApi
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE_HPG::OneApi
#endif // ML_ENABLE_ONEAPI

#endif // ML_ENABLE_XE_HPG

#if ML_ENABLE_XE_HPC

#include "ml_traits_xe_hpc.h"

//////////////////////////////////////////////////////////////////////////
/// @brief Instantiates functions for DdiCommandBuffer.
//////////////////////////////////////////////////////////////////////////
#if ML_ENABLE_OPENCL
namespace ML::XE_HPC::OpenCL
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE_HPC::OpenCL
#endif // ML_ENABLE_OPENCL

#if ML_ENABLE_ONEAPI
namespace ML::XE_HPC::OneApi
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE_HPC::OneApi
#endif // ML_ENABLE_ONEAPI

#endif // ML_ENABLE_XE_HPC

#if ML_ENABLE_XE2_HPG

#include "ml_traits_xe2_hpg.h"

//////////////////////////////////////////////////////////////////////////
/// @brief Instantiates functions for DdiCommandBuffer.
//////////////////////////////////////////////////////////////////////////
#if ML_ENABLE_OPENCL
namespace ML::XE2_HPG::OpenCL
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE2_HPG::OpenCL
#endif // ML_ENABLE_OPENCL

#if ML_ENABLE_ONEAPI
namespace ML::XE2_HPG::OneApi
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE2_HPG::OneApi
#endif // ML_ENABLE_ONEAPI

#endif // ML_ENABLE_XE2_HPG

#if ML_ENABLE_XE3

#include "ml_traits_xe3.h"

//////////////////////////////////////////////////////////////////////////
/// @brief Instantiates functions for DdiCommandBuffer.
//////////////////////////////////////////////////////////////////////////
#if ML_ENABLE_OPENCL
namespace ML::XE3::OpenCL
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE3::OpenCL
#endif // ML_ENABLE_OPENCL

#if ML_ENABLE_ONEAPI
namespace ML::XE3::OneApi
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE3::OneApi
#endif // ML_ENABLE_ONEAPI

#endif // ML_ENABLE_XE3

#if ML_ENABLE_XE3P

#include "ml_traits_xe3p.h"

//////////////////////////////////////////////////////////////////////////
/// @brief Instantiates functions for DdiCommandBuffer.
//////////////////////////////////////////////////////////////////////////
#if ML_ENABLE_OPENCL
namespace ML::XE3P::OpenCL
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE3P::OpenCL
#endif // ML_ENABLE_OPENCL

#if ML_ENABLE_ONEAPI
namespace ML::XE3P::OneApi
{
    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGet_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGet_1_0(
        const CommandBufferData_1_0* data )
    {
        return DdiCommandBuffer<T>::CommandBufferGet_1_0( data );
    }

    //////////////////////////////////////////////////////////////////////////
    /// @brief Instantiates template function for CommandBufferGetSize_1_0.
    //////////////////////////////////////////////////////////////////////////
    StatusCode ML_STDCALL CommandBufferGetSize_1_0(
        const CommandBufferData_1_0* data,
        CommandBufferSize_1_0*       size )
    {
        return DdiCommandBuffer<T>::CommandBufferGetSize_1_0( data, size );
    }

} // namespace ML::XE3P::OneApi
#endif // ML_ENABLE_ONEAPI

#endif // ML_ENABLE_XE3P

