本文整理汇总了Python中dllretrace.DllRetracer.doInvokeFunction方法的典型用法代码示例。如果您正苦于以下问题:Python DllRetracer.doInvokeFunction方法的具体用法?Python DllRetracer.doInvokeFunction怎么用?Python DllRetracer.doInvokeFunction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dllretrace.DllRetracer
的用法示例。
在下文中一共展示了DllRetracer.doInvokeFunction方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: doInvokeFunction
# 需要导入模块: from dllretrace import DllRetracer [as 别名]
# 或者: from dllretrace.DllRetracer import doInvokeFunction [as 别名]
def doInvokeFunction(self, function):
Retracer.doInvokeFunction(self, function)
# Handle missing debug layer. While it's possible to detect whether
# the debug layers are present, by creating a null device, and checking
# the result. It's simpler to retry.
if function.name.startswith('D3D10CreateDevice'):
print r' if ((_result == E_FAIL || _result == DXGI_ERROR_SDK_COMPONENT_MISSING) && (Flags & D3D10_CREATE_DEVICE_DEBUG)) {'
print r' retrace::warning(call) << "Direct3D 10.x SDK Debug Layer (d3d10sdklayers.dll) not available, continuing without debug output\n";'
print r' Flags &= ~D3D10_CREATE_DEVICE_DEBUG;'
Retracer.doInvokeFunction(self, function)
print r' }'
if function.name.startswith('D3D11CreateDevice'):
print r' if ((_result == E_FAIL || _result == DXGI_ERROR_SDK_COMPONENT_MISSING) && (Flags & D3D11_CREATE_DEVICE_DEBUG)) {'
print r' retrace::warning(call) << "Direct3D 11.x SDK Debug Layer (d3d11*sdklayers.dll) not available, continuing without debug output\n";'
print r' Flags &= ~D3D11_CREATE_DEVICE_DEBUG;'
Retracer.doInvokeFunction(self, function)
print r' }'