1 // 2 // Copyright 2012 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // RenderTargetD3D.cpp: Implements serial handling for rx::RenderTargetD3D 8 9 #include "libANGLE/renderer/d3d/RenderTargetD3D.h" 10 11 namespace rx 12 { 13 unsigned int RenderTargetD3D::mCurrentSerial = 1; 14 RenderTargetD3D()15RenderTargetD3D::RenderTargetD3D() : mSerial(issueSerials(1)) {} 16 ~RenderTargetD3D()17RenderTargetD3D::~RenderTargetD3D() {} 18 getSerial() const19unsigned int RenderTargetD3D::getSerial() const 20 { 21 return mSerial; 22 } 23 issueSerials(unsigned int count)24unsigned int RenderTargetD3D::issueSerials(unsigned int count) 25 { 26 unsigned int firstSerial = mCurrentSerial; 27 mCurrentSerial += count; 28 return firstSerial; 29 } 30 31 } // namespace rx 32