当前位置: 首页>>代码示例>>C++>>正文


C++ RosUmdDevice::SetException方法代码示例

本文整理汇总了C++中RosUmdDevice::SetException方法的典型用法代码示例。如果您正苦于以下问题:C++ RosUmdDevice::SetException方法的具体用法?C++ RosUmdDevice::SetException怎么用?C++ RosUmdDevice::SetException使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RosUmdDevice的用法示例。


在下文中一共展示了RosUmdDevice::SetException方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: DdiStagingResourceMap

void APIENTRY RosUmdDeviceDdi::DdiStagingResourceMap(
    D3D10DDI_HDEVICE hDevice,
    D3D10DDI_HRESOURCE hResource,
    UINT subResource,
    D3D10_DDI_MAP mapType,
    UINT mapFlags,
    D3D10DDI_MAPPED_SUBRESOURCE* pMappedSubRes)
{
    RosUmdLogging::Entry(__FUNCTION__);

    RosUmdDevice* pRosUmdDevice = RosUmdDevice::CastFrom(hDevice);
    RosUmdResource * pResource = (RosUmdResource *)hResource.pDrvPrivate;

    try
    {
        pRosUmdDevice->StagingResourceMap(pResource, subResource, mapType, mapFlags, pMappedSubRes);
    }

    catch (std::exception & e)
    {
        pRosUmdDevice->SetException(e);
    }

    RosUmdLogging::Exit(__FUNCTION__);
}
开发者ID:UIKit0,项目名称:graphics-driver-samples,代码行数:25,代码来源:RosUmdDeviceDdi.cpp

示例2: DdiCreateResource

void APIENTRY RosUmdDeviceDdi::DdiCreateResource(
    D3D10DDI_HDEVICE hDevice,
    const D3D11DDIARG_CREATERESOURCE* pCreateResource,
    D3D10DDI_HRESOURCE hResource,
    D3D10DDI_HRTRESOURCE hRTResource)
{
    RosUmdLogging::Entry(__FUNCTION__);

    RosUmdDevice* pRosUmdDevice = RosUmdDevice::CastFrom(hDevice);

    try {
        pRosUmdDevice->CreateResource(pCreateResource, hResource, hRTResource);
    }

    catch (std::exception & e)
    {
        pRosUmdDevice->SetException(e);
    }

    RosUmdLogging::Exit(__FUNCTION__);
}
开发者ID:UIKit0,项目名称:graphics-driver-samples,代码行数:21,代码来源:RosUmdDeviceDdi.cpp

示例3: DdiStagingResourceUnmap

void APIENTRY RosUmdDeviceDdi::DdiStagingResourceUnmap(
    D3D10DDI_HDEVICE hDevice,
    D3D10DDI_HRESOURCE hResource,
    UINT subResource)
{
    RosUmdLogging::Entry(__FUNCTION__);

    RosUmdDevice* pRosUmdDevice = RosUmdDevice::CastFrom(hDevice);
    RosUmdResource * pResource = (RosUmdResource *)hResource.pDrvPrivate;

    try
    {
        pRosUmdDevice->StagingResourceUnmap(pResource, subResource);
    }

    catch (std::exception & e)
    {
        pRosUmdDevice->SetException(e);
    }

    RosUmdLogging::Exit(__FUNCTION__);
}
开发者ID:UIKit0,项目名称:graphics-driver-samples,代码行数:22,代码来源:RosUmdDeviceDdi.cpp

示例4: DdiCreateComputeShader

void APIENTRY RosUmdDeviceDdi::DdiCreateComputeShader(
    D3D10DDI_HDEVICE hDevice,
    const UINT* pCode,
    D3D10DDI_HSHADER hShader,
    D3D10DDI_HRTSHADER hRTShader)
{
    RosUmdLogging::Entry(__FUNCTION__);

    RosUmdDevice * pRosUmdDevice = RosUmdDevice::CastFrom(hDevice);

    try
    {
        pRosUmdDevice->CreateComputeShader(pCode, hShader, hRTShader);
    }

    catch (std::exception & e)
    {
        pRosUmdDevice->SetException(e);
    }

    RosUmdLogging::Exit(__FUNCTION__);
}
开发者ID:eejackliu,项目名称:graphics-driver-samples,代码行数:22,代码来源:RosUmdDeviceDdi.cpp

示例5: DdiFlush

BOOL APIENTRY RosUmdDeviceDdi::DdiFlush(D3D10DDI_HDEVICE hDevice, UINT flushFlags)
{
    RosUmdLogging::Entry(__FUNCTION__);

    RosUmdDevice* pRosUmdDevice = RosUmdDevice::CastFrom(hDevice);

    BOOL bSuccess = TRUE;

    try
    {
        pRosUmdDevice->m_commandBuffer.Flush(flushFlags);
    }

    catch (std::exception & e)
    {
        pRosUmdDevice->SetException(e);
        bSuccess = FALSE;
    }

    RosUmdLogging::Exit(__FUNCTION__);

    return bSuccess;
}
开发者ID:UIKit0,项目名称:graphics-driver-samples,代码行数:23,代码来源:RosUmdDeviceDdi.cpp

示例6: DdiResourceCopy

void APIENTRY RosUmdDeviceDdi::DdiResourceCopy(
    D3D10DDI_HDEVICE hDevice,
    D3D10DDI_HRESOURCE hDestinationResource,
    D3D10DDI_HRESOURCE hSourceResource)
{
    RosUmdLogging::Entry(__FUNCTION__);

    RosUmdDevice* pRosUmdDevice = RosUmdDevice::CastFrom(hDevice);
    RosUmdResource * pDestinationResource = (RosUmdResource *)hDestinationResource.pDrvPrivate;
    RosUmdResource * pSourceResource = (RosUmdResource *)hSourceResource.pDrvPrivate;

    try
    {
        pRosUmdDevice->ResourceCopy(pDestinationResource, pSourceResource);
    }

    catch (std::exception & e)
    {
        pRosUmdDevice->SetException(e);
    }

    RosUmdLogging::Exit(__FUNCTION__);
}
开发者ID:UIKit0,项目名称:graphics-driver-samples,代码行数:23,代码来源:RosUmdDeviceDdi.cpp

示例7: DdiCreateDomainShader

void APIENTRY RosUmdDeviceDdi::DdiCreateDomainShader(
    D3D10DDI_HDEVICE hDevice,
    const UINT* pCode,
    D3D10DDI_HSHADER hShader,
    D3D10DDI_HRTSHADER hRTShader,
    const D3D11_1DDIARG_TESSELLATION_IO_SIGNATURES* pSignatures)
{ 
    RosUmdLogging::Entry(__FUNCTION__);

    RosUmdDevice * pRosUmdDevice = RosUmdDevice::CastFrom(hDevice);

    try
    {
        pRosUmdDevice->CreateTessellationShader(pCode, hShader, hRTShader, pSignatures, D3D11_SB_DOMAIN_SHADER);
    }

    catch (std::exception & e)
    {
        pRosUmdDevice->SetException(e);
    }

    RosUmdLogging::Exit(__FUNCTION__);
}
开发者ID:eejackliu,项目名称:graphics-driver-samples,代码行数:23,代码来源:RosUmdDeviceDdi.cpp

示例8: DdiCreateGeometryShader

void APIENTRY RosUmdDeviceDdi::DdiCreateGeometryShader(
    D3D10DDI_HDEVICE hDevice,
    const UINT* pCode,
    D3D10DDI_HSHADER hShader,
    D3D10DDI_HRTSHADER hRTShader,
    const D3D11_1DDIARG_STAGE_IO_SIGNATURES* pSignatures)
{
    RosUmdLogging::Entry(__FUNCTION__);

    RosUmdDevice * pRosUmdDevice = RosUmdDevice::CastFrom(hDevice);

    try
    {
        pRosUmdDevice->CreateGeometryShader(pCode, hShader, hRTShader, pSignatures);
    }

    catch (std::exception & e)
    {
        pRosUmdDevice->SetException(e);
    }

    RosUmdLogging::Exit(__FUNCTION__);
}
开发者ID:eejackliu,项目名称:graphics-driver-samples,代码行数:23,代码来源:RosUmdDeviceDdi.cpp


注:本文中的RosUmdDevice::SetException方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。