MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / ~DX11GraphicsObject

Method ~DX11GraphicsObject

GTE/Graphics/DX11/DX11GraphicsObject.cpp:12–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace gte;
11
12DX11GraphicsObject::~DX11GraphicsObject()
13{
14 if (mGTObject && mGTObject->IsDrawingState())
15 {
16 // Sampler, blend, depth-stencil, and rasterizer states have only a
17 // finite number of possibilities in DX11. If you create a state
18 // whose settings duplicate one already in existence, DX11 gives you
19 // a pointer to the existing one, incrementing the reference count
20 // internally. GTE does not track the duplicates, so we cannot
21 // assert that the reference count is zero.
22 DX11::SafeRelease(mDXObject);
23 }
24 else
25 {
26 DX11::FinalRelease(mDXObject);
27 }
28}
29
30DX11GraphicsObject::DX11GraphicsObject(GraphicsObject const* gtObject)
31 :

Callers

nothing calls this directly

Calls 1

IsDrawingStateMethod · 0.80

Tested by

no test coverage detected