Commit 797ff4c0 by Geoff Lang

Move some structs and enums from Renderer.h to RendererD3D.h

Change-Id: Ib334d2506031466a73f1a233ee68c1658841a882 Reviewed-on: https://chromium-review.googlesource.com/234720Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 62588f5b
......@@ -172,25 +172,5 @@ class Renderer
mutable Workarounds mWorkarounds;
};
struct dx_VertexConstants
{
float depthRange[4];
float viewAdjust[4];
};
struct dx_PixelConstants
{
float depthRange[4];
float viewCoords[4];
float depthFront[4];
};
enum ShaderType
{
SHADER_VERTEX,
SHADER_PIXEL,
SHADER_GEOMETRY
};
}
#endif // LIBANGLE_RENDERER_RENDERER_H_
......@@ -35,6 +35,13 @@ class TextureStorage;
class UniformStorage;
class VertexBuffer;
enum ShaderType
{
SHADER_VERTEX,
SHADER_PIXEL,
SHADER_GEOMETRY
};
class RendererD3D : public Renderer
{
public:
......@@ -210,6 +217,19 @@ class RendererD3D : public Renderer
unsigned int mScratchMemoryBufferResetCounter;
};
struct dx_VertexConstants
{
float depthRange[4];
float viewAdjust[4];
};
struct dx_PixelConstants
{
float depthRange[4];
float viewCoords[4];
float depthFront[4];
};
}
#endif // LIBANGLE_RENDERER_D3D_RENDERERD3D_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment