OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OgreD3D11HardwareBufferManager.h
Go to the documentation of this file.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
6 
7 Copyright (c) 2000-2014 Torus Knot Software Ltd
8 
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15 
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26 -----------------------------------------------------------------------------
27 */
28 #ifndef __D3D11HARWAREBUFFERMANAGER_H__
29 #define __D3D11HARWAREBUFFERMANAGER_H__
30 
31 #include "OgreD3D11Prerequisites.h"
33 
34 namespace Ogre {
35 
38  {
39  protected:
41 
46 
47  public:
52  createVertexBuffer(size_t vertexSize, size_t numVerts, HardwareBuffer::Usage usage, bool useShadowBuffer = false);
55  createStreamOutputVertexBuffer(size_t vertexSize, size_t numVerts, HardwareBuffer::Usage usage, bool useShadowBuffer = false);
58  createIndexBuffer(HardwareIndexBuffer::IndexType itype, size_t numIndexes, HardwareBuffer::Usage usage, bool useShadowBuffer = false);
64  bool useShadowBuffer = false, const String& name = "");
68  bool useShadowBuffer = false, const String& name = "");
69 
74  void releaseDefaultPoolResources(void);
80 
81  };
82 
85  {
86  public:
89  {
90 
91  }
93  {
95  }
96  };
97 
98 
99 }
100 
101 
102 #endif
Singleton wrapper for hardware buffer manager.
Shared pointer implementation used to share uniform buffers.
Implementation of HardwareBufferManager for D3D11.
HardwareBufferManagerBase * mImpl
RenderToVertexBufferSharedPtr createRenderToVertexBuffer()
Create a render to vertex buffer.
void releaseDefaultPoolResources(void)
Release all buffers in the default memory pool.
Shared pointer implementation used to share vertex buffers.
VertexDeclaration * createVertexDeclarationImpl(void)
Internal method for creates a new vertex declaration, may be overridden by certain rendering APIs...
Combination of HBU_DYNAMIC, HBU_WRITE_ONLY and HBU_DISCARDABLE.
HardwareVertexBufferSharedPtr createStreamOutputVertexBuffer(size_t vertexSize, size_t numVerts, HardwareBuffer::Usage usage, bool useShadowBuffer=false)
Creates a stream output vertex buffer.
Shared pointer implementation used to share index buffers.
D3D11HardwareBufferManagerBase(D3D11Device &device)
void recreateDefaultPoolResources(void)
Recreate all buffers in the default memory pool.
Base definition of a hardware buffer manager.
Usage
Enums describing buffer usage; not mutually exclusive.
D3D11HardwareBufferManagerBase as a Singleton.
#define OGRE_DELETE
This class declares the format of a set of vertex inputs, which can be issued to the rendering API th...
HardwareCounterBufferSharedPtr createCounterBuffer(size_t sizeBytes, HardwareBuffer::Usage usage=HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE, bool useShadowBuffer=false, const String &name="")
Create counter buffer.
#define OGRE_NEW
HardwareVertexBufferSharedPtr createVertexBuffer(size_t vertexSize, size_t numVerts, HardwareBuffer::Usage usage, bool useShadowBuffer=false)
Creates a vertex buffer.
Shared pointer implementation used to share counter buffers.
Reference-counted shared pointer, used for objects where implicit destruction is required.
_StringBase String
Definition: OgreCommon.h:53
HardwareUniformBufferSharedPtr createUniformBuffer(size_t sizeBytes, HardwareBuffer::Usage usage=HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE, bool useShadowBuffer=false, const String &name="")
Create uniform buffer.
void destroyVertexDeclarationImpl(VertexDeclaration *decl)
Internal method for destroys a vertex declaration, may be overridden by certain rendering APIs...
HardwareIndexBufferSharedPtr createIndexBuffer(HardwareIndexBuffer::IndexType itype, size_t numIndexes, HardwareBuffer::Usage usage, bool useShadowBuffer=false)
Create a hardware vertex buffer.