本文整理汇总了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__);
}
示例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__);
}
示例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__);
}
示例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__);
}
示例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;
}
示例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__);
}
示例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__);
}
示例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__);
}