Browse Source

ATOMIC-124: Fixing D3D9/D3D11

JoshEngebretson 10 years ago
parent
commit
afe533da21

+ 2 - 0
Source/Atomic/Graphics/Direct3D11/D3D11RenderSurface.h

@@ -36,6 +36,8 @@ class ATOMIC_API RenderSurface : public RefCounted
     friend class Texture2D;
     friend class TextureCube;
 
+    REFCOUNTED(RenderSurface)
+
 public:
     /// Construct with parent texture.
     RenderSurface(Texture* parentTexture);

+ 2 - 0
Source/Atomic/Graphics/Direct3D11/D3D11ShaderProgram.h

@@ -33,6 +33,8 @@ namespace Atomic
 /// Combined information for specific vertex and pixel shaders.
 class ATOMIC_API ShaderProgram : public RefCounted
 {
+    REFCOUNTED(ShaderProgram)
+
 public:
     /// Construct.
     ShaderProgram(Graphics* graphics, ShaderVariation* vertexShader, ShaderVariation* pixelShader)

+ 2 - 0
Source/Atomic/Graphics/Direct3D11/D3D11ShaderVariation.h

@@ -75,6 +75,8 @@ struct ShaderParameter
 /// Vertex or pixel shader on the GPU.
 class ATOMIC_API ShaderVariation : public RefCounted, public GPUObject
 {
+    REFCOUNTED(ShaderVariation)
+
 public:
     /// Construct.
     ShaderVariation(Shader* owner, ShaderType type);

+ 2 - 0
Source/Atomic/Graphics/Direct3D11/D3D11VertexDeclaration.h

@@ -36,6 +36,8 @@ class VertexBuffer;
 /// Vertex declaration.
 class ATOMIC_API VertexDeclaration : public RefCounted
 {
+    REFCOUNTED(VertexDeclaration)
+
 public:
     /// Construct with vertex buffers and element masks to base declaration on.
     VertexDeclaration(Graphics* graphics, ShaderVariation* vertexShader, VertexBuffer** buffers, unsigned* elementMasks);

+ 2 - 0
Source/Atomic/Graphics/Direct3D9/D3D9RenderSurface.h

@@ -35,6 +35,8 @@ class ATOMIC_API RenderSurface : public RefCounted
 {
     friend class Texture2D;
     friend class TextureCube;
+    
+    REFCOUNTED(RenderSurface)
 
 public:
     /// Construct with parent texture.

+ 2 - 0
Source/Atomic/Graphics/Direct3D9/D3D9ShaderProgram.h

@@ -31,6 +31,8 @@ namespace Atomic
 /// Combined information for specific vertex and pixel shaders.
 class ShaderProgram : public RefCounted
 {
+    REFCOUNTED(ShaderProgram)
+
 public:
     /// Construct.
     ShaderProgram(ShaderVariation* vertexShader, ShaderVariation* pixelShader)

+ 2 - 0
Source/Atomic/Graphics/Direct3D9/D3D9ShaderVariation.h

@@ -66,6 +66,8 @@ struct ShaderParameter
 /// Vertex or pixel shader on the GPU.
 class ATOMIC_API ShaderVariation : public RefCounted, public GPUObject
 {
+    REFCOUNTED(ShaderVariation)
+
 public:
     /// Construct.
     ShaderVariation(Shader* owner, ShaderType type);

+ 2 - 0
Source/Atomic/Graphics/Direct3D9/D3D9VertexDeclaration.h

@@ -48,6 +48,8 @@ struct VertexDeclarationElement
 /// Vertex declaration.
 class ATOMIC_API VertexDeclaration : public RefCounted
 {
+    REFCOUNTED(VertexDeclaration)
+
 public:
     /// Construct with vertex element mask.
     VertexDeclaration(Graphics* graphics, unsigned elementMask);