| 936 | } |
| 937 | |
| 938 | void Device::releaseResource(ISlangUnknown* pResource) |
| 939 | { |
| 940 | if (pResource) |
| 941 | { |
| 942 | // Some static objects get here when the application exits |
| 943 | if (this) |
| 944 | { |
| 945 | mDeferredReleases.push({mpFrameFence ? mpFrameFence->getSignaledValue() : 0, Slang::ComPtr<ISlangUnknown>(pResource)}); |
| 946 | } |
| 947 | } |
| 948 | } |
| 949 | |
| 950 | bool Device::isFeatureSupported(SupportedFeatures flags) const |
| 951 | { |