HeavenWu / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Direct3D11 Device is missing CreateDeferredContext #615

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
trunk version 2.0.8.42
The Direct3D11 Device.cpp is missing:

DeviceContext^ Device::CreateDeferredContext()
        {
                ID3D11DeviceContext *context;
                HRESULT hr = InternalPointer->CreateDeferredContext( 0,
&context);
                RECORD_D3D11(hr);
                if( Result::Last.IsFailure )
                {
                        return nullptr;
                }
                return DeviceContext::FromPointer( context );
        }

Original issue reported on code.google.com by enriko.r...@gmail.com on 27 Jan 2010 at 9:47

GoogleCodeExporter commented 8 years ago
Just use the DeviceContext constructor. The SlimDX guideline is that creation
functions are moved to the constructor instead of as a method in the parent 
class.

Original comment by Mike.Popoloski on 27 Jan 2010 at 11:07